How to delete folders through Terminal?
How do you delete files and folders through Terminal?
MacBook Pro Mid 2012-OTHER, macOS Sierra (10.12.4), The last Mac with removable RAM!
How do you delete files and folders through Terminal?
MacBook Pro Mid 2012-OTHER, macOS Sierra (10.12.4), The last Mac with removable RAM!
Hello Exr0n,
While Kappy is technically correct, rmdir is rarely used in practice. It will only remove an empty directory. Usually people do "rm -Rf /path/to/folder" to remove a folder.
Just remember to have a backup. There is no undo or trash can in the Terminal. When you delete a file in the Terminal, it is gone for good.
Use "rm" for files and "rmdir" for folders.
How to delete folders through Terminal?