New To Mac-Forums?

Welcome to our community! Join the discussion today by registering your FREE account. If you have any problems with the registration process, please contact us!

Get your questions answered by community gurus Advice and insight from world-class Apple enthusiasts Exclusive access to members-only contests, giveaways and deals

Join today!

 
Start a Discussion
 

Mac-Forums Brief

Subscribe to Mac-Forums Brief to receive special offers from Mac-Forums partners and sponsors

Join the conversation RSS
OS X - Operating System General OS operation information and support

OS 10.4 - Deleting locked .htm file


Post Reply New Thread Subscribe

 
Thread Tools
hagios1972

 
hagios1972's Avatar
 
Member Since: Jan 24, 2007
Location: Hamilton, New Zealand
Posts: 343
hagios1972 will become famous soon enough
Mac Specs: MacBook black, Intel C2D 2GHz, 2GB RAM, 320GB WD Scorpio HD

hagios1972 is offline
I was trying to empty my Trash but it won't delete the file with htm extension. The message says:

"The operation cannot be completed because the file 'filename.htm' is locked"

Does anyone has any suggestion on how to delete these files? Thanks.
QUOTE Thanks
hagios1972

 
hagios1972's Avatar
 
Member Since: Jan 24, 2007
Location: Hamilton, New Zealand
Posts: 343
hagios1972 will become famous soon enough
Mac Specs: MacBook black, Intel C2D 2GHz, 2GB RAM, 320GB WD Scorpio HD

hagios1972 is offline
By the way, I used AppDelete to unistall Windows Media Player and the deleted files in the Trash are in the folder "AppDelete Windows Media Player". It seems that this the the folder with locked htm files.
QUOTE Thanks
hagios1972

 
hagios1972's Avatar
 
Member Since: Jan 24, 2007
Location: Hamilton, New Zealand
Posts: 343
hagios1972 will become famous soon enough
Mac Specs: MacBook black, Intel C2D 2GHz, 2GB RAM, 320GB WD Scorpio HD

hagios1972 is offline
Solved it. Found and used this:
Recently I found myself wanting to get rid of Windows Media Player 9. I used AppZapper to get all the application components in the trash, but then I was unable to delete it because files (specifically .htm files) deep within the contents of the app are locked. So after a little research, I came across this fairly simple solution and figured I'd share it:

Warning: Typographical error or misuse of the following rm -rf command can result in serious data loss. Insertion of a space in the wrong place could result in the complete deletion of data on your hard disk, for example. You may wish to copy and paste the commands below into a text editor to verify spacing. Follow these steps to delete Trash for the logged-in user:
1. Use a program like AppZapper to get all WMP components in the trash.
2. Open the Terminal application, in /Applications -> Utilities.
3. In Terminal, type sudo rm -rf[space]. Don't type [space] literally; just press the space bar on the keyboard. Do not press Return.
4. In Finder, open your Trash.
5. Choose Select All from the Edit menu.
6. Drag the selection (all) from the Trash window into the Terminal window. This causes the Terminal window to automatically fill in the name and location of each item in your Trash.
7. Press Return.
Now your computer will be free from Windows Media Player.

Found this as well from http://docs.info.apple.com/article.html?artnum=106272
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.
QUOTE Thanks
MacHeadCase
Guest
 
Posts: n/a

Glad you sorted it out, hagios! (Nice avatar btw)

Was wondering... Did you try Secure Empty Trash? That solves a lot of recalcitrant files that don't want to delete with the normal Empty Trash command.

You could have tried the workarounds that are posted in this thread or again another nifty trick posted here.

Of course, this being a M$ app, are we very much surprised we can't get rid easily of something written by them and that was installed on our systems? That's why I avoid their software like the plague they are. The only behemoth I'm willing to tangle with is Adobe. LOL

Anyway, good thing you resolved this issue! Congrats!
QUOTE Thanks
hagios1972

 
hagios1972's Avatar
 
Member Since: Jan 24, 2007
Location: Hamilton, New Zealand
Posts: 343
hagios1972 will become famous soon enough
Mac Specs: MacBook black, Intel C2D 2GHz, 2GB RAM, 320GB WD Scorpio HD

hagios1972 is offline
Quote:
Originally Posted by MacHeadCase View Post
Glad you sorted it out, hagios! (Nice avatar btw)

Was wondering... Did you try Secure Empty Trash? That solves a lot of recalcitrant files that don't want to delete with the normal Empty Trash command.

You could have tried the workarounds that are posted in this thread or again another nifty trick posted here.

Of course, this being a M$ app, are we very much surprised we can't get rid easily of something written by them and that was installed on our systems? That's why I avoid their software like the plague they are. The only behemoth I'm willing to tangle with is Adobe. LOL

Anyway, good thing you resolved this issue! Congrats!
Thanks for providing the links to the other threads. I will now avoid those M$ softwares. I have learned my lesson. RE the avatar, my wife and I have a knock for German Shepherd dogs. We used to have them but the picture will suffice for now.
QUOTE Thanks
hagios1972

 
hagios1972's Avatar
 
Member Since: Jan 24, 2007
Location: Hamilton, New Zealand
Posts: 343
hagios1972 will become famous soon enough
Mac Specs: MacBook black, Intel C2D 2GHz, 2GB RAM, 320GB WD Scorpio HD

hagios1972 is offline
Oh, BTW, I also tried the Secure Empty Trash but it did not work either.
QUOTE Thanks
metalsam

 
Member Since: Jan 14, 2007
Posts: 101
metalsam is on a distinguished road
Mac Specs: 1.67ghz powerbook G4, 1GB RAM, 100GB HD.

metalsam is offline
If you 'get info' on the object that is locked there is a tickbox saying locked. Untick the box and it becomes a normal, editable and deletable file again

I think its to stop you accidently deleting / editing important files.
QUOTE Thanks
mck_tj05

 
mck_tj05's Avatar
 
Member Since: Apr 20, 2007
Location: little bit north of dallas
Posts: 198
mck_tj05 is on a distinguished road
Mac Specs: MBP C2D, 1 GB ram, 120GB HD

mck_tj05 is offline
i had that exact same problem. i called applecare and they told me to hold down option key while clicking empty trash.
QUOTE Thanks

Post Reply New Thread Subscribe


« default servers state | Always Loads an App at Startup »
Thread Tools

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off
Forum Jump

Similar Threads
Thread
Thread Starter
Forum
Replies
Last Post
Problem deleting locked file jayluna OS X - Operating System 7 03-28-2012 11:06 PM
Deleting File in Single-User Mode? bluntski Switcher Hangout 4 07-31-2006 06:01 PM
Not too pleased with new iMac JunMacTech Apple Desktops 14 12-05-2005 08:13 PM
Can you guys open this site? Desolate One OS X - Apps and Games 13 04-29-2005 02:23 PM
How to delete a locked file ? MasterMind OS X - Operating System 1 03-19-2005 07:46 PM

All times are GMT -4. The time now is 05:36 AM.

Powered by vBulletin
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
X

Welcome to Mac-Forums.com

Create your username to jump into the discussion!

New members like you have made this community the ultimate source for your Mac since 2003!


(4 digit year)

Already a member?