# How to remove a big UNIX/Linux directory using ionice

From time to time, I make the mistake of generating too many small files in a single directory. This usually results in some trouble removing the directory, rm -rf is not very I/O efficient here.

Here's how to run rm with ionice to make it go!

ionice -n7 nice rm -rf directory