The command above will delete all the specified folders, their sub-folders, and files in them. rm –r nameofthedirectory1 nameofthedirectory2 It will just stop, without giving you an error message. If it happens that the first folder you named isn’t empty, Command Line will not try to delete other folders. The catch here is, like with the previous one, they all have to be empty. The command presented above will delete multiple folders. rm –d nameofthedirectory1 nameofthedirectory2
This is the most basic command for removing/deleting folders. The command above will only let you delete a single, empty directory.