is this the correct linux format to delete all files within the /cur/ folder without deleting cur?
I have an account which has 10 gig of email and I want to delete all emails.
rm /home/user/mail/cur/*
is this the correct linux format to delete all files within the /cur/ folder without deleting cur?
I have an account which has 10 gig of email and I want to delete all emails.
rm /home/user/mail/cur/*
Last edited by prettydumb; 08-30-2007 at 07:59 PM.
10 GIG is alot and it might not work on a single wildcard delete. You might have to cd to /home/user/mail/cur/ and then do a "ls" to see what the file names are and delete them in chunks like "rm 1187*" "rm 1188*" and so on.
also if the size of the mailbox usage remains high you might need to delete the maildirsize file, see this thread:
http://forums.cpanel.net/showthread....ht=maildirsize
Last edited by nyjimbo; 08-30-2007 at 08:39 PM.
"A dog has raised it’s hind leg on the age of nevermore !"
-- Rolf
When you say "chunks"...
Is this a chunk? 1187* rm1197*
Would this mean I were deleting a "chunk" of ten files?
If so, would the correct linux command be /home/user/mail/cur/1187* rm1197*
If you try to do a mass delete and there are too many it might say something about the file list being too big and it wont delete anything. Doing a "rm 1187*" might be deleting hundreds of files are they are LONG file names.
Go into the cur directory and do a :
ls|wc
which will list the files to a counter and print out a count (the leftmost number in the output is the count of files in the folder). If its small then you should just be able to delete them with the "rm *" but PLEASE be sure you are in the right folder or you could kill your machine.
"A dog has raised it’s hind leg on the age of nevermore !"
-- Rolf