💻 Software
How do I delete files within a directory and subdirectories but not the folders?
Fresh5 days ago
Mar 15, 20265144 viewsConfidence Score0%
0%
Problem
How do I delete files within a directory and subdirectories but not the folders? I need to be able to do this on the Linux command line. With ?
Error Output
rm
Unverified for your environment
Select your OS to check compatibility.
1 Fix
Canonical Fix
Unverified Fix
New Fix – Awaiting Verification
Fix for: How do I delete files within a directory and subdirectories but not the folders?
Low Risk
GNU and “modern” versions GNU (the one shipped with Linux distributions) and the present in recent macOS versions[Which ones?] has a option. This deletes all finds in the current directory and subdirectories. It leaves the directories in place. This…
Awaiting Verification
Be the first to verify this fix
Sign in to verify this fix