rm -rf dir1
rm -rf directory-name
rm -r path
rm -rf /path/to/directory
rm -rf /path/to/directory/*
rm -rf dirname
rm -d dir
rmdir directoryname // This is will delete an empty directory. rmdir -r directoryname // This is will delete everything in the directory // including all files and subdirectories.
rmdir dir1