Argument list too long (when trying to delete files in Linux)

spiros

  • Administrator
  • Hero Member
  • *****
    • Posts: 824669
    • Gender:Male
  • point d’amour
Argument list too long (when trying to delete files in Linux)

You may have used something like this to delete all files in "myfolder":
Code: [Select]
rm -rf /home/path/public_html/myfolder/*
This will work for deletion of multiple files without throwing an error:
Code: [Select]
find /home/path/public_html/myfolder -type f -delete


 

Search Tools