Linux – find command no such file or directory error

findlinux

I am using this command to delete the files and folders older than 150 days

 find /media/Server/VPS/dailySQL/* -mtime +140 -exec rm -rf {} \;

The problem is that i get the error like below

find: `/media/May-08-Sat-2010': No such file or directory
find: `/media/May-11-Tue-2010': No such file or directory
find: `/media/May-12-Wed-2010': No such file or directory
find: `/media/May-13-Thu-2010': No such file or directory
find: `/media/May-14-Fri-2010': No such file or directory

why is that

Best Answer

Try this:

$ find /media/Server/VPS/dailySQL/ -mtime +140 | xargs rm -rf