FG
💻 Software

How does one delete a directory filled with files and other subdirectory permanently, bypassing the trash, from the command line in OS X?

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

Problem

So my command line skills are a little rusty and I'm having trouble remembering the differences between the meanings of flags in different distro's os's. I also don't really remember all my technical lingo so manpages seem really unclear. Basically I'm on Mac OS X and want to delete a directory alo…

Error Output

$ rm -R dir-name/

Unverified for your environment

Select your OS to check compatibility.

1 Fix

Canonical Fix
Unverified Fix
New Fix – Awaiting Verification

Fix for: How does one delete a directory filled with files and other subdirectory permanently, bypassing the trash, from the command line in OS X?

Low Risk

If you want to delete , the command you want is (assuming you are working in the directory that contains ). This will delete and everything in it, but leave and anything else in it alone. is clever enough not to recurse into - otherwise every would …

Awaiting Verification

Be the first to verify this fix

Sign in to verify this fix

Environment