Answers for "cli remove directory"

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
2

remove folder and contents linux

# Remove Single File Using rm:
rm file1.txt
# Remove Directory and it's contents:
rm -r dir1 			# '-r' is short for '-recursive' 
# Remove empty Directory:
rm -d dir1 			# '-d' is short for '-dir'
Posted by: Guest on November-01-2020
1

remove all directrories in onde command hit

rm -R -- */
Posted by: Guest on September-09-2020

Python Answers by Framework

Browse Popular Code Answers by Language