Skip to main content
1 of 6
stevendaniels
  • 4.1k
  • 1
  • 14
  • 4

Using rsync is surprising fast and simple.

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

Source: http://stackoverflow.com/questions/1795370/unix-fast-remove-directory-for-cleaning-up-daily-builds

stevendaniels
  • 4.1k
  • 1
  • 14
  • 4