Use the below command:
rm -rf lamppIt 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 folderNameNote: 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/folderNameFYI: You can use the following options:
-f = to ignore non-existent files and never prompt-r = to remove directories and their contents recursively-v = to display what is being done©2025 Danial Khakbaz. All Rights Reserved.
Available for new projects