How does MAC delete single files and folders in the wastebasket


For Mac books, small memory is a big injury. Many users have a deep understanding of this. For example, MacBook Air users with only 128G memory. Small memory also means that the computer’s garbage files must be cleaned up in time. How to delete a single file and folder in the wastebasket?


Many friends have a headache about this problem. We can clean it all with tools such as cleanmymac, but we can’t delete a single file box folder. A senior netizen said that it was realized by using the command line method,The method is as follows

1. Open the terminal: launchpad – Utilities – terminal, or enter “terminal” in spotlight

2. Cd ~ /. Trash (directory will switch to wastebasket)

3. LS – L (list the files under the wastebasket)

4. RM [file name to delete] or RM – R [directory to delete]

But in fact, most friends may not adapt to the terminal command line, so experts wrote a workflow service. You can download the workflow or create it yourself according to the tutorial.

Unzip it and copy it to ~ / library / services / (how to get in? You can use the finder menu to go to the folder and enter the path)

Usage: right click the selected file or folder in the service menu and click Service – delete to directly delete the file without entering the wastebasket.

Those who like to tamper with the Mac OS system can try it by themselves!The following is a tutorial on creating with Automator:

1. Open the Automator and select new

2. Select service type

3. Search for the run shell script and double-click it


Switch “pass in” to “as argument”, and paste the following code into the input box



4. The service received the selected file or folder


5. Save and name it direct delete. That’s it once and for all.

Later, you can perform this operation on files and folders in the service menu of finder and wastebasket.

Be careful not to misoperate the file, which will directly delete the file and will not enter the wastebasket ~


This is how to delete a single file and folder in the wastebasket. This method is believed to be a very practical method for Mac users with small memory. With this method, their computers can have more memory to support the operation of the system.