Remove large number of files?

cPanelLauren

Product Owner
Staff member
Nov 14, 2017
13,296
1,271
313
Houston
Hi @Nakshathra


What folder is it in? If it's easier you might delete the folder itself. Otherwise you'd need to use find and delete to do this since rm won't be able to do this:

cd to the directory in question and run something like:
Code:
find . -type f -delete
 

Nakshathra

Registered
Jan 22, 2017
2
0
1
India
cPanel Access Level
Website Owner
Hello,

Thank you for the response .it's a folder under home/user.. deleting the folder or file inside it didn't work due to the number files in it. Any other way ?


Hi @Nakshathra


What folder is it in? If it's easier you might delete the folder itself. Otherwise you'd need to use find and delete to do this since rm won't be able to do this:

cd to the directory in question and run something like:
Code:
find . -type f -delete