Remove a directory
From Attie's Wiki
(Difference between revisions)
Line 5: | Line 5: | ||
</pre> | </pre> | ||
− | + | In the above example, you would replace "<directory>" with the name of the directory you wish to delete. | |
+ | |||
+ | <code>-rdf</code> specifies <b>r</b>ecursive, remove <b>d</b>irectories and <b>f</b>orce |
Revision as of 15:03, 12 May 2010
To remove a directory that is not empty, use the command below:
$ rm -rdf <directory>
In the above example, you would replace "<directory>" with the name of the directory you wish to delete.
-rdf
specifies recursive, remove directories and force