HostOnNet Blog

Delete Large Number of files in a folder

On linux, i was asked to delete a folder with lot of files.

When i try to delete the file with rm if *, i got error, too big arguments.

The files are deleted with command

find /home/mwp2007/mail/new -type f | xargs rm -f

/home/mwp2007/mail/new is the folder which contain the files.


Posted in Cpanel Server, Linux. Bookmark the permalink.