FG
💻 Software

fast Linux directory tree removal

Fresh5 days ago
Mar 15, 20263950 views
Confidence Score0%
0%

Problem

is painfully slow for a directory tree with 100000 files (in sub-directories) on a reiserfs file system. Any ideas for faster removal of directory trees (even risking rare corruption) ?

Error Output

rm -rf mydir

Unverified for your environment

Select your OS to check compatibility.

1 Fix

Canonical Fix
Unverified Fix
New Fix – Awaiting Verification

Fix for: fast Linux directory tree removal

Low Risk

The only solution I can think of is to have all your files on a separate files system. The file system can live on disk partition or in a file. Instead of deleting the files you could wipe out the partition or delete the file. I can sympathize with …

Awaiting Verification

Be the first to verify this fix

Sign in to verify this fix

Environment