The rmdir command, short for "remove directory," is used to delete directories. However, for safety reasons, the directory must be empty before you can remove it. If a directory contains files or other directories, you'll need to use the "-r" option to remove it and its contents. The basic syntax of the rmdir command is: rmdir DIRECDTORY_NAME .
Here are some examples:$ rmdir project ←To remove an empty directory named "project" $ rmdir -p --verbose L1/L2/L3 ←To remove multiple nested directories $ mkdir prj1 prj2 prj3 ←Remove multiple directories "prj1", "prj2" and "prj3" |