rm -rf dir1
rm -rf dirname
rm -r filename rm -rf filename this command remove the directory and subdirectory forecefully
rm -d dir
rm -r mydir