Delete a folder

rmdir foldername

Note: Folder must be empty of files. If not, use the rm command with the -R option to recursively remove all files in the folder and the folder.

rm -R foldername

References

rm man page