remove directory in command line code example
Example 1: remove directory in cmd
# for removing empty directory
$ rmdir myDirectory
# to remove a directory that contains files and subdirectory
$ rm -r myDirectory
Example 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
Example 3: remove directory from linux
rm -r filename
rm -rf filename
this command remove the directory and subdirectory forecefully
Example 4: remove directory command line
Rmdir "C:\myfolder"