How to delete large amount of files in Linux

How to delete large amount of files in Linux


In this tutorials, we will show you how to delete a large amount of files in Linux
if you receive this error when using rm -rf command : “Argument list is too long”.
You can use the command “find” to delete the files.


How to delete large amount of files with the command find

Go in the directory where the files are

cd /directory/of/the/files/


Use this command to remove the files

find . -type f -delete


Add the -print option to see the files you are deleting

find . -type f -print -delete


The process can take a long time if you have a very large amount of files to delete.


Colo-Serv Communications has written 20 articles

Premium Dedicated Server in Canada

Leave a Reply

Your email address will not be published. Required fields are marked *

3 × three =

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>