ubuntu remove directory recursive code example
Example 1: ubuntu remove directory
rm -R folder-name
Example 2: terminal delete directory not empty
rm -rf myDirectory
Example 3: 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/*/