If you have to remove large number of files, like hundreds of thousands, and don’t want to kill your production server, instead of rm -fr DIR
you can use this little fella.
while [ true ]; do ionice -c 3 find DIRECTORY_TO_BE_DELETED -type f -print | head -50000 | xargs rm -f; sleep 50; done