I have a directory with many subdirectories. I tried doing
rm -rf mydirectory
but it was still running after 1 hour. I have tried getting the number of subdirectories with
ls -l . | egrep -c '^-'
but it hasn't finished after 30 minutes.
Is there a faster way to recursively delete an entire directory?