To delete a directory, use the "rmdir" command followed by the directory name. Make sure to specify the correct path of the directory you want to delete. Keep in mind that the "rmdir" command only works for empty directories. If the directory contains files or subdirectories, use the "rm" command with the "-r" option to recursively delete the directory.