Archives March 8, 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

Previous day

Feb. 9, 2014

Next day

July 14, 2014

Archives