The disk is full on my MacBook Air

Joined
Jun 11, 2019
Messages
2
Reaction score
0
Points
1
The disk is full on my MacBook Air, how do I empty the trash folder? When I try, it say the disk is full?
I have tried to delete one file at a time, but same message. Disk is full


Any other ideas to circumvent this problem?
 

Raz0rEdge

Well-known member
Staff member
Moderator
Joined
Jul 17, 2009
Messages
15,771
Reaction score
2,111
Points
113
Location
MA
Your Mac's Specs
2022 Mac Studio M1 Max, 2023 M2 MBA
You can empty the trash from the command line. Follow these instructions exactly and double-check each command to ensure you are doing the right thing in the right place.

Open up a Terminal windows (Applications->Utilities->Terminal) and enter the following command
Code:
cd ~/.Trash

Now, confirm you are in the right place with
Code:
pwd

This should give you a response like /Users/<username>/.Trash. If that isn't the case, DO NOT CONTINUE! Close the terminal with CMD+q and go back to step 1 above and restart. Ignoring this will have dire consequences and you've been warned.

If the response was correct, then do
Code:
ls -lS | head

This will list the contents of the folder sorted by the largest files first and only show you about 9 or so files.

You are now ready to delete the first file in the list since it is the largest file. Do so with
Code:
rm <name of file>

Enter the name of the file as you listed (copy and paste if it helps) to remove it. If the name has spaces in it, you will find it easier to put it between double quotes to avoid issues.

Once you've deleted the first file, confirm by using the command ls -lS | head again. The file you deleted shouldn't show up anymore.

Now try to empty the trash using the UI. If it complains, remove the next largest file from the Terminal, rinse and repeat until the UI starts to function.

The MBA traditionally has either 128GB or 256GB of storage and it's easy to fill things up. For nominal macOS operation you should leave 20% of the disk free at all times, so in the future pay attention to your free space.
 
OP
N
Joined
Jun 11, 2019
Messages
2
Reaction score
0
Points
1
Thank you so much for your reply. I will try this and you can be sure that I'll pay attention and leave 20% space free in the future - lesson learned!
 

Shop Amazon


Shop for your Apple, Mac, iPhone and other computer products on Amazon.
We are a participant in the Amazon Services LLC Associates Program, an affiliate program designed to provide a means for us to earn fees by linking to Amazon and affiliated sites.
Top