too many files in directory to delete?

find . -name ‘*.net*’ | xargs rm

change *.net to whatever is necessary.

this will iterate through each file name and apply RM to it.

rm -f * will not work where there are too many files as it simply appends each file name to form a massive string.

Comments are closed.