delete a lots of files / directories

How to delete large amount of files/directories which rm can't handle it

  • find
    find directory -delete
  • rsync
    mkdir blank
    rsync -a --delete blank/ directory/
  • perl
    cd directory
    perl -e 'for(<*>){((stat)[9]<(unlink))}'