can't delete file from trash

Joined
May 25, 2007
Messages
56
Reaction score
0
Points
6
Location
toronto
When i try and delete; Windows Media Player.app it wont let me do so, it says the operation cannot be completed because x is locked, and its not just 1 file its loads. The app file itself isnt locked and I'm really not sure how to get rid of it
 

rman


Retired Staff
Joined
Dec 24, 2002
Messages
12,637
Reaction score
168
Points
63
Location
Los Angeles, California
Your Mac's Specs
14in MacBook Pro M1 Max 32GB 2TB
If I remember correctly, hold down the either the option key or the apple command key and then select empty the trash from the drop down menu.
 
Joined
Nov 1, 2007
Messages
387
Reaction score
14
Points
18
Location
Bay Area, CA
Your Mac's Specs
15" MBP w/Intel Core 2 Duo w/Lion, MBA w/Lion, 80GB iPod Video, 32GB iPhone 4, Two 32GB iPads
If that doesn't work..

I have this at work. I've only had to use it once, but it worked perfect. You just download it from HERE. :)

It's a Force Empty Trash.
 
Joined
Sep 13, 2006
Messages
3,570
Reaction score
470
Points
83
Location
Colorado
Your Mac's Specs
Mac's
In Terminal.app you can type:

Sudo rm -rf

Then drag the file from the trash and drop it on the Terminal window... Press Enter.. Enter your password ... Press Enter
the file should now be gone.
 
OP
W
Joined
May 25, 2007
Messages
56
Reaction score
0
Points
6
Location
toronto
thanks for the replies, holding the appl button doesnt work so I tried that thing in terminal and it said this;

Welcome to Darwin!
pallassrosefinch1:~ Sharene$ Sudo rm -rf/Users/Sharene/.Trash/Windows\ Media\ Player.app/
rm: illegal option -- /
usage: rm [-f | -i] [-dPRrvW] file ...
unlink file
pallassrosefinch1:~ Sharene$
 
Joined
Sep 13, 2006
Messages
3,570
Reaction score
470
Points
83
Location
Colorado
Your Mac's Specs
Mac's
You need a SPACE between the "rm -rf" and the /Users/....


BE VERY CAREFUL using rm -rf any mistake could be critical.

Here ya go... Copy/paste this in Terminal:

Sudo rm -rf /Users/Sharene/.Trash/Windows\ Media\ Player.app/
 
Joined
Dec 28, 2006
Messages
431
Reaction score
10
Points
18
Location
N.C.
Your Mac's Specs
MacBook 2.2Ghz, 4GB RAM, 160GB HD
Does this work on locked programs on your backup HD ?
 

rman


Retired Staff
Joined
Dec 24, 2002
Messages
12,637
Reaction score
168
Points
63
Location
Los Angeles, California
Your Mac's Specs
14in MacBook Pro M1 Max 32GB 2TB
I tend to use the quotes aslo as in:

sudo rm -rf "/Users/Sharene/.Trash/Windows\ Media\ Player.app"
 
Joined
Jan 24, 2007
Messages
345
Reaction score
4
Points
18
Location
Hamilton, New Zealand
Your Mac's Specs
MacBook black, Intel C2D 2GHz, 2GB RAM, 320GB WD Scorpio HD
When i try and delete; Windows Media Player.app it wont let me do so, it says the operation cannot be completed because x is locked, and its not just 1 file its loads. The app file itself isnt locked and I'm really not sure how to get rid of it

Deleting locked files
Locked files can easily be deleted if you press Shift-Option or Option key combination while emptying the Trash (in Mac OS X 10.1 and later). For Mac OS X versions 10.0 to 10.0.4, use Show Info to deselect the item's Locked checkbox.

If you still cannot delete the item, start up your computer from the Mac OS X CD-ROM and choose Disk Utility from the Installer menu of the first screen. Use Disk Utility to verify and, if necessary, repair your disk.
 
Joined
Nov 28, 2007
Messages
25,564
Reaction score
486
Points
83
Location
Blue Mountains NSW Australia
Your Mac's Specs
Silver M1 iMac 512/16/8/8 macOS 11.6
Before using any terminal commands, firstly go to Finder Preferences in the menu bar, then go to 'Advanced'. Make sure 'Empty Trash Securely' is NOT selected. Takes eons to empty trash in secure mode.
 

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