Remove large number of files?
How do I remove files around 1 billion from a folder, tries all the possible SSH commands nothing seems to be responding.
-
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: find . -type f -delete0 -
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:
find . -type f -delete
0 -
You should be able to remove the directory from cPanel File Manager. Try it and let us know if you get an error. 0
Please sign in to leave a comment.
Comments
3 comments