Answers for "command to remove all files from a directory"

8

remove all files inside directory linux

# remove everything in a directory 
rm /path/to/dir/*
# remove all sub-directories and files
rm -r /path/to/dir/*
Posted by: Guest on July-10-2020
-1

linux remove folder and all his content

rm -rf /path/to/directory/{*,.*}
Posted by: Guest on February-29-2020

Code answers related to "command to remove all files from a directory"

Code answers related to "Shell/Bash"

Browse Popular Code Answers by Language