Results 1 to 8 of 8
  1. #1

    hagios1972's Avatar
    Member Since
    Jan 24, 2007
    Location
    Hamilton, New Zealand
    Posts
    344
    Specs:
    MacBook black, Intel C2D 2GHz, 2GB RAM, 320GB WD Scorpio HD
    Deleting locked .htm file
    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.

  2. #2

    hagios1972's Avatar
    Member Since
    Jan 24, 2007
    Location
    Hamilton, New Zealand
    Posts
    344
    Specs:
    MacBook black, Intel C2D 2GHz, 2GB RAM, 320GB WD Scorpio HD
    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.

  3. #3

    hagios1972's Avatar
    Member Since
    Jan 24, 2007
    Location
    Hamilton, New Zealand
    Posts
    344
    Specs:
    MacBook black, Intel C2D 2GHz, 2GB RAM, 320GB WD Scorpio HD
    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.

  4. #4
    MacHeadCase
    Guest
    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!

  5. #5

    hagios1972's Avatar
    Member Since
    Jan 24, 2007
    Location
    Hamilton, New Zealand
    Posts
    344
    Specs:
    MacBook black, Intel C2D 2GHz, 2GB RAM, 320GB WD Scorpio HD
    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.

  6. #6

    hagios1972's Avatar
    Member Since
    Jan 24, 2007
    Location
    Hamilton, New Zealand
    Posts
    344
    Specs:
    MacBook black, Intel C2D 2GHz, 2GB RAM, 320GB WD Scorpio HD
    Oh, BTW, I also tried the Secure Empty Trash but it did not work either.

  7. #7


    Member Since
    Jan 14, 2007
    Posts
    101
    Specs:
    1.67ghz powerbook G4, 1GB RAM, 100GB HD.
    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.

  8. #8

    mck_tj05's Avatar
    Member Since
    Apr 20, 2007
    Location
    little bit north of dallas
    Posts
    198
    Specs:
    MBP C2D, 1 GB ram, 120GB HD
    i had that exact same problem. i called applecare and they told me to hold down option key while clicking empty trash.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Problem deleting locked file
    By jayluna in forum OS X - Operating System
    Replies: 7
    Last Post: 03-28-2012, 11:06 PM
  2. Is it possible to save a file made in Pages as HTM?
    By mLeroux in forum OS X - Apps and Games
    Replies: 3
    Last Post: 01-02-2008, 06:17 AM
  3. Deleting Locked Files *HELP*
    By jordansky in forum OS X - Operating System
    Replies: 8
    Last Post: 12-25-2007, 05:15 AM
  4. Locked Myself Out Of File..please Help
    By kilo15 in forum OS X - Operating System
    Replies: 2
    Last Post: 02-08-2007, 02:13 AM
  5. Trouble Deleting Locked Items....
    By mrfu in forum OS X - Operating System
    Replies: 4
    Last Post: 05-01-2006, 07:52 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •