Archives March 2014

Deleting Millions of Files in /var/spool/clientmqueue/ folder

Last update on April 10, 2014.

In case you have to delete millions of files, like in clientmqueue folder.

Use this code, Save this as listdirdelete.c

Compile it with gcc: gcc listdirdelete.c -o listdirdelete

Then use ./listdirdelete /var/spool/clientmqueue

The code will list the files and delete them one by one. The problem with other methods I tired ...

Continue reading

Daily archives

Previous month

February 2014

Next month

July 2014