大量のファイルを速く消す方法

こんな感じらしい

mkdir empty_dir
rsync -a --delete empty_dir/    yourdirectory/

linux - Efficiently delete large directory containing thousands of files - Unix & Linux Stack Exchange

for i in `/bin/ls`;do if [ "$i" != "empty_dir" ]; then echo $i; rsync -a --delete empty_dir/ $i/ ; fi; done