Answers for "how to remove contents of directory in linux"

2

remove a file or dir in linux or mac or ubuntu

note:your_file_name can be a dir or a file 

sudo rm -r your_file_name
Posted by: Guest on May-11-2020
2

how to remove directory in cmd

# for removing empty directory
$ rmdir myDirectory

# to remove a directory that contains files and subdirectory
$ rm -r myDirectory
rm -rf /config/filegroups/*/
Posted by: Guest on October-08-2020

Code answers related to "how to remove contents of directory in linux"

Python Answers by Framework

Browse Popular Code Answers by Language