Warning: The deleted files are not recoverable.
This is just a simple and quick UNIX tip to delete files without going to trash folder first. What are the steps?
Delete Normal Files
- Highlight files/folders you want to delete
- Drop them all to Terminal
- Execute it (pressing Return)
For example, if you are going to delete 3 files named
Delete Me, Crush Me, and Kill Me, the Terminal command lines to execute the deletion will be
rm -rf /Users/wendy/Desktop/Delete\ Me /Users/wendy/Desktop/Crush\ Me /Users/wendy/Desktop/Kill\ Me
It’s difficult and not recommended to type all the paths and filenames manually (the complexity of the line can be seen from example above).
Delete Locked Files
Some files are locked. In order to delete locked files, the steps are the same, except that you will need to use Terminal command line :
sudo rm -rf
And you will need admin password. Is this tip useful?