delete directories in ubuntu code example
Example 1: ubuntu remove directory
rm -R folder-name
Example 2: remove directory in cmd
# for removing empty directory
$ rmdir myDirectory
# to remove a directory that contains files and subdirectory
$ rm -r myDirectory
Example 3: remove folder ubuntu
$ rm -r directoryName
Example 4: linux remove folder and all his content
rm -rf /path/to/directory/{*,.*}