ubuntu rm directory and contents code example
Example 1: how to forcefully delete a directory in linux
rm -rf dirname
Example 2: how to delete a folder in ubuntu using terminal
rm -R folder-name
rm -rf dirname
rm -R folder-name