Understanding how to delete a directory in Linux systems is an important part of a keeping your computer's file system efficient and free of clutter. Fortunately, Linux makes the process simple, even when working from the terminal's command-line.
While most directories on your computer's file system are created and modified by the programs you run, a program will almost never delete one on its own. That is user's responsibility and it's one users should take somewhat seriously.