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:
-f
= to ignore non-existent files and never prompt-r
= to remove directories and their contents recursively-v
= to display what is being done©2024 Danial Khakbaz. All Rights Reserved.
Available for new projects