Delete a directory in Linux very simple, many people are still accustomed to use rmdir, but once the directory is not empty, it fell into deep distress, now use the RM-RF command can be resolved.
Direct RM is available, but add two parameters-rf that is: RM-RF directory name
-R is recursive down, no matter how many levels of directory, delete
-F is directly forcibly deleted, without any hint of meaning
To delete a folder instance: rm-rf/var/log/httpd/access
The/var/log/httpd/access directory and all files and folders under it will be deleted
Need to be reminded: Use this RM-RF must be extra careful, Linux does not recycle Bin, once deleted is not recoverable.
Of course, RM has more parameters and usage, and man RM can view the
Delete File Usage instance: Rm-f/var/log/httpd/access.log
This file will be forcibly deleted/var/log/httpd/access.log
How to quickly delete a directory on Linux