Delete one file from trash

Hi,
Is there a key combination to delete a selected file/folder from the trash?
I have looked online and can't find any solution. The closest I have found is to use rm command in terminal, is there a way of adding to the right click menu?
Thanks

I use the following Automater workflow to add opening a terminal to the context sensitive menu. As seems to be normal here the quote has had its indentation massacred. Save the workflow in ~/Library/Services and it will be added to the right click menu. It should be easy enough to adapt it to use the rm command, I'd look into the Run Shell Script instead of launching terminal.
Run AppleScript:
on run {input, parameters}
tell application "Finder"
set myWin to window 1
set theWin to (quoted form of POSIX path of (target of myWin as alias))
tell application "System Events" to set isActive to (name of processes) contains "Terminal"
tell application "Terminal"
activate
if not isActive then
set visible of window 1 to false
end if
tell window 1
do script "cd " & theWin & ";clear"
end tell
end tell
end tell
return input
end run

Similar Messages

  • I am using ibook G4 PPC with mac os x10.4.11. A day before I delete one file from my hard disk by mistake and after that when I restarted my notebook, it's not starting the os. Only that blue screen is there. please, show me how to deal with it.

    I am using an old ibook G4 ppc with mac os x 10.4.11. A day before by default I delete one file and I think it was the startup file of os because after that when I restarted my notebook it's not running the OS only that blue screen is there. This notebook was a gift for me and still it is so close to my heart. I don't wana loose it. Please, help me out.

    Without the install CD, you are hosed.
    What happened to it?
    It is possible to call AppleCare and order a replacement. They will charge you a nominal fee for shipping and handling.
    Allan

  • Delete only one file from Trash

    Hello There,
    I do not want to empty my entire Trash folder but only some files which i know I am not going to use it. Is there a way to delete only selected files and not just empty trash...
    Thanks in advance for the help..
    NA

    nAyer,
    When I place files in the Trash, I expect that they will be deleted. IMHO Trash is not a good place to store files that I may have second thoughts about eliminating.
    I have created a folder which I named "B4 Trash," and placed it on my Desktop. If I really want to throw something away, I put it in the Trash and empty the Trash. If I am not sure about deletion, I place it in B4 Trash and get rid of it at my leisure.
    Why not drag all of the files in Trash to a folder you create on your Desktop called B4 Trash, and then drag the files you really want to get rid of back to the Trash. Then empty the Trash.
    ;~)

  • Deleting individual Files from trash folder

    This should be a simple question...Is there a way to permanently delete individual files/folders from the trash folder instead of emptying the entire trash folder? TIA, Scott

    As Allan says, no... the trash *should not* be used as a repository for files you're not sure you want to trash yet. Not only is this extremely hazardous, as it's easy to accidentally empty the trash, but it also puts all those questionable files outside the reach of Time Machine, so they will not be backed up. If you need a "Pending Trash" folder, create one on your desktop, and then put files in the trash only once you are truly ready to delete them.

  • I have sent a file to the trash bin. When I come to empty the trash bin everything goes out except this one particular file and I get a note saying the file is 'in use' but it is not. How can I delete this file from trash?

    I have a Macbook Pro with OS X Lion 10.7.2. I have sent a work file to the trash bin along with many other files. When I empty the trash this one particular file remains and I get a message that this file is still in use. I have tried returning the file to my documents, opening it, closing it and then sending it to trash and again I try to empty trash but the same message comes up - Q - How can I trash this file permanently?

    First just try logging out and back in.  Whatever is holding on to it may not be running after the logout thus freeing it so you can trash it after logging back in.
    You might also try Trash It!
    Lastly, look at the following for suggestions:
    The X Lab: Solving Trash Problems

  • Can't delete jpg files from Trash

    I have files in my trash (jpgs) but I can't empty the Trash folder. A message "The operation can’t be completed because the item “file1159041.jpg” is in use. I have about 20 of these jpgs in there but when I drag them to the desktop and click to open, nothing happens. How can I empty my Trash folder?

    Hello:
    There are several ways to do that.  I use a program called "Cocktail" on the infrequent occasions I have an item in the trash that will not empty.
    Barry

  • Unable to delete file from trash because it's "in use" not locked.

    I'm unable to delete a file from trash. I keep getting the following message: "The operation can’t be completed because the item is in use."  I've confirmed the file isn't locked and I've tried renaming it but still no luck. I'm running OSX 10.8.4. Any thoughts?

    Check the 'More Like This' discussions on the right hand column.  I suspect you may find the answer there.
    Ciao.

  • How to delete 1 file from CD?

    If I only want to delete one file from a cd that contains many files, how do I do this? I don't want to erase the whole cd!

    1. find 700 MB of free space somewhere, you have it i'm sure. if not back-up & delete old stuff...
    2. copy the whole CD to there
    3. delete that one file
    4. burn a new CD (this is the one step i'm not sure you're able to do locally - hence your question. or?)
    5. allow burn to verify. then test it as mounted.
    6. if o.k., use sturdy scissors and cut the previous CD in half. or use s'th sharp and dig into the data side...
    i'm partial to the cutting in half approach. apparently putting a CD into a microwave destroys it too, and i hear the process results in interesting visual effects, but if you go that route i suggest you do this in someone else's microwave and from a safe distance...
    cheers

  • Trying to delete file from trash but get this: The operation can't be completed because the item "File name" is in use. All other files delete except this one. Please help

    Trying to delete file from trash but get this: The operation can’t be completed because the item “File name” is in use. All other files delete except this one. Please help

    Maybe some help here:
    http://osxdaily.com/2012/07/19/force-empty-trash-in-mac-os-x-when-file-is-locked -or-in-use//

  • I tried to delete one item from an email folder, and my computer deleted the whole file. I cant fint it anywhere.

    I tried to delete one item from an email folder, my computer deleted the whole file and I cant find it anywhere. Any ideas?

    lindafromgainesville wrote:
    ...is there a seperate trash for email?
    In Mail, yes -

  • Help to restore iTunes files from trash, not deleted.

    I need to move 35,000 podcasts, 654 GB, from my trash back to my iTunes library on an external hard drive (EHD). They are NOT deleted from my trash.
    I am running on Snow Leopard 10.6.8 until I can clear enough EHD space to backup/upgrade to Mtn Lion.
    11.5 iTunes is my current version on my 640 GB early 2009 24” mac.
    I have tried:
    Undo - command + Z
    Selecting all in trash and dragging it to the:
    iTunes Music folder on my EHD
    Automatically Add to iTunes folder on my EHD
    The upper left corner on the iTunes window
    The iTunes icon in the dock
    There is no restore option when I Right Click on anything in trash, single or more than one file.
    In iTunes: File, Add to Library, selecting the recycle bin or the file under it. Nothing happens. I do have checked on iTunes Preferences, Advanced, Copy files to iTunes Media folder when adding to library.
    Dragging 40 files from trash to the Automatically Add to iTunes folder on my EHD.
    This returned the files but without essential data like the release date/description, which totally messes up my library.
    They are no longer listed in date order, and I cannot see if I have the most recent without scrolling down down through sometimes over 200 pods in that album, and even then there is no date order, which orders all podcasts. All the tags/descriptions/comments I spent thousands of hours on are gone.
    I just recieved in the mail yesterday my Data Rescue 3 software for an earlier problem,
    I do not know if it will help retrieve all the essential data.
    I cannot move the files to my desktop because the size, 654 GB, is bigger than my 640 GB mac. Plus, I know from experience this does not preserve the essential data like release date.
    My iTunes EHD has 485 GB free out of 1.71 TB.
    I can order another 3 TB EHD to arrive in 2 weeks, which I will eventually need, but my husband aint going to be happy. As an old photographer trying to join the digital age, I already have 20 TB storage, mostly for photos, which has put us in debt.
    Please, does anyone know how to restore podcasts from trash while retaining metadata?

    Thanks for your sympathy, dclkdm.
    For anybody else out there,
    I have had some luck retaining info such as release date, plays, and rating by
    dragging podcasts to a Finder folder in iTunes,
    in iTunes Media,
    Automatically Add to iTunes.
    So far, I have retrieved all my lost podcasts with Data Rescue 3,
    but have not tried to consolidate everything into one library yet.

  • Deleting files from trash folder 10.9.2

    I recently updated to 10.9.2. Nothing seemed to have changed but the trash folder is acting funny. Now I am not able to delete any file from the trash. I select empty trash securely and then the dialog box displaying the number of files to be deleted appears and disappears in 1-2 seconds and the file/s dont get deleted.
    Is there a way out of this?
    Cheers!

    Trash – Can’t Empty or Move File To Trash
    Trash – Empty When File is Locked or in Use
    Try holding down the option button while trying to delete the Trash. If that doesn’t work, here is some more information.
    Trash FAQ          
    Trash Permission Error
    Trash Permission Error (2)

  • HT2674 I have an iMac purchased in May 2011.  OSX Lion 10.7.3.  I deleted backup file from the external hard drive. Now, the trash can will not empty some of the files deleted.  File folder: "Core Services" contains a locked file: "boot.efi".  It will not

    I have an iMac purchased in May 2011.  OSX Lion 10.7.3.  I deleted backup file from the external hard drive which operates from Time Machine.
    Now, the trash can will not empty some of the files deleted from the backup harddrive.
    The trash contains-- File folder: "Core Services" which contains a locked file: "boot.efi". 
    It will not delete.
    How do I get the trash can empty of these files?

    Yes, the Old Master file has a folder for each year where I find all photos from that specific year. I am attaching a screen shot of the file.
    In the meantime i have managed to download all photos (it did not download any video files though in mpg, avi, 3gp, m4v,mp4 and mov format) to a new iphoto library. Unfortunately the photos are quite mixed and often doubled up. I ma considering to purchase iphoto library which checks all duplicates in iphoto. this will save me a lot of time. What do you think?

  • I cannot delete a file from the document folder.  I can move it to the trash and then empty the trash, but when I go back to the documents folder it is still there.

    I cannot delete a file from the documents folder.  I can move it to the trash and then empty it, but when I go back to the documents folder, the file is still there.

    Gay,
    I wonder what your computing environment is. Is your account being administrated by another account? Are you working in an account subject to "Parental Controls"?
    Jerry

  • Why can't I delete mp3 files from my Trash?  They are not locked.

    Why can't I delete mp3 files from my Trash? They are not locked.  I compressed them into a zip file and then couldn't delete that file either.  I've restored them and tried deleting again but no luck.  Can anybody please help?  iOS 10.8.5

    You can't empty the Trash or move a file to the Trash
    Visit The XLab FAQs and read the FAQ on solving Trash issues. You can also try using Trash It! 5.1 to fix the problem. Or you can try this:
    Open the Terminal in the Utilities folder and paste the following at the prompt:
         sudo rm -Rf ~/.Trash/*
    Press RETURN. Enter your admin password when prompted. It will not echo to the screen. Press RETURN again.

Maybe you are looking for