ubuntu remove folder and contents code example
Example 1: ubuntu remove directory
rm -R folder-name
Example 2: remove folder ubuntu
sudo rm -rf folder-name
Example 3: ubuntu delete directory and all files
rm -rf ./test
Example 4: 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/*/
Example 5: linux delete subfolders
rm -rf /config/filegroups/*/