Danial Khakbaz's logo
Home
Projects
Experiences
Blog
Contact

Delete directories on Mac

Delete directories on Mac's Image
Danial Khakbaz's image

Danial Khakbaz

February 09, 2024

2 min read

Use the below command:

rm -rf lampp

It deletes all files and folders contained in the lampp directory.

In case user doesn’t have the permission to delete the folder:

Add sudo at the beginning of the command:

sudo rm -rf folderName

Note: This assumes you are already at the same level in the terminal as the folder you want to delete. If not:

sudo rm -r /path/to/folderName

FYI: You can use the following options:


Sources

©2024 Danial Khakbaz. All Rights Reserved.

Available for new projects