Is it possible to create a secure empty trash shortcut in file menu?

I have second finger click enabled so that I can quickly move files to the trash bin from the contextual menu. This is fine and dandy, however, for files containing sensitive informaton, I'd like to have a "Secure File Delete" option available (file bypasses the trash bin and is wiped after selecting said option).
I've searched the threads and checked system prefs. Only options are to change "empty trash" to "secure empty trash". This wouldn't work as I have more files that are typically trashed and not wiped. It'd be nice to have it available as a convenience I suppose
I know theres an app in the app store that offers this functionality. It's $3-4.
So my question...is it possible to create such a contextual menu option on my own?
heres an example of what I'm ltalking about...

Create a new Service in Automator.
Set it to receive files an folders in the Finder.
Drag in an Ask for Confirmation action if you want it.
Drag in a Run Shell Script action from the Utilities section of the Library.
Set it to Pass Input as Arguments and Replace the code with:
srm -r "$@"
--That's ess-ar-em for Secure ReMove (just copy and paste)
Save it and it will show up in the Services menu when you right-click on an item in the Finder.
There are options you can add to it like -s for simple, -m for medium. The default (without options) is 35-pass Gutman.
You can see what options are available by opening Terminal and typeing
man srm
Hit space to scroll down. Q to quit the man page.
The Verbose and Interactive options won't work since you can respond.
Note that depending on the algorithm chosen, it may take some time for the file/folder to disappear from the Finder view.

Similar Messages

  • "Secure Empty Trash" Didn't Clear Space on HD

    How can I reallly clear the space formerly occupied by BackUp files?
    When I used "Secure Empty Trash" after putting lots of BackUp files in the Trash, there was no change in the amount of available HD space. I have about 10GB of applications and files on a 60GB HD, so there should be about 45 GB of free space, but there's only 4 GB available.
    FWIW, I've Repaired Permissions (only a few were necessary) and Restarted to no avail. I've used "Secure Empty Trash" to remove another file, and it worked just fine!
    So how can I clear the part of my HD that I asssume is written with random 0s and 1s left by "Secure Empty Trash", not real files?

    John:
    Thanks for hanging in there with me! As you knew it would, WhatSize worked.
    It identified the old Backup files (that the Finder didn't) and transferred them to the Trash. I used Secure Empty Trash delete them. This time it worked correctly and I have space for Backups again, thank-you very much!
    If you have any idea why it didn't work the first time, I'd appreciate knowing it. I've never used it before, so I don't know if it has a repuitation for being buggy or otherwise problematic.
    The name "WhatSize" was a little misleading.... I initially thought it would just do what the Finder's View > Show View Options > Calculate all sizes command does. Some of the comments on the Version Tracker site supported that idea, so as the stubborn Dutchman that I am was reluctant to do something that might make matters worse.
    I also never considered the possibility that using Secure Empty Trash (as I had) would convert files into hidden files..... especially since I've never had such an experience in uising standard Empty Trash in 25+ years of Apple II and Mac use.
    As you expected, I have learned that lots of HD space is devoted to hidden files (that once were visible in the "old days", if I'm not mistaken).
    In any case, I very much appreciate your wisdom and willingness to keep replying when I didn't take your suggestion! Thanks!
    Cheers!!
    Dick

  • Secure Empty Trash doesn't work

    Working in Mavericks on an iMac 27. Secure Empty Trash starts but disappears and nothing is deleted. Is it safe to use Erase Free Space in Disk Utility?

    danimal303 wrote:
    So it won't help me at all. I don't quite see any use for it, a good reason not to use it. But I have some 560 000 files in Trash and they won't budge.
    When you delete a file (without Secure Empty Trash), all the data of the file still exists on the file system free list.  It will remain there until the file system reuses the space.  Erase Free Space is a way to address this, after files have been deleted.
    It is only really useful as a once in a while event, such as someone forgot to use Secure Empty Trash for a file with sensitive data.  And Secure Empty Trash is very time consuming, and worse it is if you have an SSD, this wears out the SSD faster.
    A better approach is to use FileVault so that a deleted file is instantly securely deleted because it was always encrypted.
    Since you are attempting to use Secure Empty Trash, then I would try this from the command line using the 'srm' command.  "man srm"
    srm -f -r -v ~/.Trash/*
    The srm command will perform a secure erase.  The -f will keep it from prompting for approval.  The -r will recurse through and directories of files in the trash.  The -v will display the progress while deleting so you can see how things are going, and have an idea of how much progress you are making.
    Be very careful with srm, as if you point it at the wrong directory it could delete something you care about, or a lot of somethings.
    If there are files that srm -f will not delete, then you bring out the sudo command.  But be VERY CAREFUL with sudo, as you can delete a lot more than just a few files you care about.
    sudo srm -f -r -v ~/.Trash/*
    Password: you enter your account's password here, assuming you are the admin of the Mac.

  • Is it possible to change zero options in "Secure empty trash"?

    In the "Secure Empty Trash" feature in Tiger, is it possible to change the settings regarding how many times the file being deleted is zeroed out? Can I choose a 1-pass or a 7-pass, etc?

    I don't think the "Finder" itself offers a way to change the number of overwrites performed during a "secure empty trash". Note that "secure empty trash" just calls '/usr/bin/srm', using the '-m' option -- 7 passes, including zeroes, FF, F6 and random according to the 'man' page.
    Depending on what you are after, and being mindful of the different possible paths for items in the "Trash" in OS X, you might be able to use 'srm' directly, using the options of your choice. Though not recommended, if you get into hacking system files, the options probably can also be changed to some extent from there.

  • "Secure Empty Trash" of my emails possible?

    Is there a way of trashing my emails within Mail Version 2.1.3 via my laptop's OS 10.4.11 -"Secure Empty Trash"- feature?
    Message was edited by: Tom Swift

    Thank you for the link to mireth.com. Within mireth I found this page which is exactly what I want to do and may do the trick:
    http://www.mireth.com/wt/nxme-erase-email-trash.html
    ===============================================
    ++How to erase email instead of deleting email++
    ++using NetShred X++
    +Mac OS X Internet Track Eraser+
    +When you delete an email or move it to the trash, it's not really gone and can be recovered. You can use NetShred X to ERASE email so it can't be recovered.+
    +* NetShred X can erase email that's in the mail trash bin. If the mail trash bin has been emptied, NetShred X can't erase the email. To erase these emails you've previously deleted, see notes+
    =============================================

  • How do i restore my secure emptied trash

    heey
    I was securely emptying my trash folder and i went to look into my iPhoto folder but nothing was there anymore, all my pictures and videos had been deleted. They must have got swipped when i was emptying it but is there any possible way of restoring these files as they were my only copies. Please help
    Thankyou

    Jasi1311 wrote:
    I was securely emptying my trash folder and i went to look into my iPhoto folder but nothing was there anymore, all my pictures and videos had been deleted. They must have got swipped when i was emptying it.
    First off, did you actually drag the iPhoto Library to the Trash perhaps with a bunch of other items?
    Did you delete pictures/video out of iPhoto itself?
    Look inside your Pictures folder and see if the iPhoto Library is there, if it is, then your pictures/video are likely safe, it's perhaps iPhoto needs to be reset.
    https://support.apple.com/kb/HT2638
    You can also right click on the iPhoto Library and "show package contents" and inside is a folder called Originals containing your original files.
    When you Secure Empty Trash, especially with a large amount of pictures and/or video, it will take some time as it's scrubbing the files off the hard drive. Depending how far this process occured depends how many files were pernamently removed from the hard drive.
    Because OS X was told "these files don't exist anymore" doesn't mean they are not still on the hard drive, as only their space is made available for new files.
    Since you canceled the secure erase, many files could still exist on the drive, just that the remaining ones not scrubbed are soon to be overwritten with new files.
    So it's important not to use the computer's boot drive until you can perform data recovery steps.
    You can need to install OS X on a external hard drive, then boot from it, install Data Rescue $100 and then have it read the 1's and 0's of the deleted data that remains.
    Create a data recovery/undelete external boot drive
    You also can take the computer to a local PC/Mac repair shop and ask them to perform Data Rescue, however it's going to cost a pretty penny as they have to sell a hard drive to you and thier time and effort. $200-$300 or so.
    If your pictures and video are not worth spending up to $400 for recovery, then your done.
    Always have a backup plan in place to "undelete" or boot the computer if it's not operating.
    Most commonly used backup methods

  • Does Secure Empty Trash Accomplish the same task as Running disk util to wipe free space

    Does using the secure empty trash option accomplish the same task as running disk util to eliminate free space from old deleted files?   I'm currently running the 7 pass deal on my late '12 iMac.  Says its gonna take 7 hrs.   Can I use safari or iTunes  while the Big Mac works its magic?

    Does using the secure empty trash option accomplish the same task as
    running disk util to eliminate free space from old deleted files?
    No.
    Finder > Empty Trash just tells the file system that those areas on the drive are now available for overwriting with new data. Data deleted off hard drives can be recovered if this method is used before it's overwritten with new data with special software.
    Finder > Secure Empty Trash runs a 7x pass military approved overwrite only on the deleted files in the Trash, works for hard drives only.
    Disk Utility > Erase Free Space creates a huge file that takes the remaining free space on the volume selected and either writes zeros or 7x pass, then confirms it and then removes the file.  Takes a long time to complete, do not interrupt.
    This can be used if one forgets to use Secure Empty Trash or wants to scrub caches or other files that don't necessarily go to the Trash for user deletion, such as program files that self delete and download cache files etc.
    Only works for hard drives and there is no recovery possible for nearly all users. Those with special expensive magnetic equipment can possibly recover data off a zero pass, but not off a 7x overwrite.
    The zero erase free space can be also be used to pre-eliminate potential unknown bad sectors on hard drives before wanted data is written to them, thus preventing future issues with data retention on hard drives.
    Disk Utility > Erase - (not moving the slider) will erase all data on the volume or partition selected, including wanted data. It just tells the file system the deleted data is ready for overwriting. Thus can be recovered using special software before it's overwritten on hard drives only.
    Disk Utility > Erase w/Security Option - (or moving the slider from the left) will secure erase all data on the volume or partition selected, including wanted data.
    It can vary on the operating system version used from zero pass, to 3x overwrite, to 7x overwrite to 35x overwrite (old version for days past of smaller drives, don't use on newer larger drives as it will take weeks to finish.)
    Secure erase methods are used to secure erase private data off of hard drives only, doesn't work for SSDs.
    For secure data deletion off a SSD or any flash media, it's NSA advised to grind it into a fine powder.
    How do I securely delete data from the machine?

  • Secure Empty Trash not 100% safe

    Recently I use finder to enter directly into Firefox's cache files and move all the files into the Trash. Next I use Secure Empty Trash.
    After that, I used Data Rescue II to see what i can find.
    I am very surprised to find most of the images that i have securely deleted.
    I know the best way is to use Disk Utility's erase free space function, but if Secure Empty Trash is going to write the data 35 times over, and still can't get the job done.
    Then using Erase free space's 35 times write-over isn't completely safe too?

    Normally when a file is deleted insecurely, the data isn't deleted at all - the only thing that is removed is the reference to the data in the file catalogue. Overwriting a file even once (let alone 35 times) should prevent recovery by programmes like the one you mentioned that are designed to detect unlinked files and create new catalogue entries for them. Given the above, a few possibilities come to mind that could account for your observations.
    One is that the files you recovered were not the ones you thought you deleted. For example, working with "TextEdit.app", any time a previously saved document is modified, an invisible "autosave" copy is created on the hard drive, intended to preserve any modifications in case the programme or computer crashes. This copy is removed insecurely once the changes are manually saved. If the original is then securely erased, it will be unrecoverable. However, data recovery programmes can easily recover the remnants of the multiple intermediate "autosave" files. I have no idea how "FireFox" works with cache files, but perhaps what you recovered was remnants from previous times you visited the sites that were cached in the files you securely deleted.
    A second, less likely possibility is that your files were recoverable due to a design flaw introduced in Leopard's version of "Secure Empty Trash" (I haven't tested recently so I don't know if the issue has since been addressed). It is possible to configure it so that files are not securely deleted, even when selecting the option. However, such a configuration would not be a random occurrence - basically, a user would have to set it themselves, although malware or a malicious person with access to your account could do the same...
    A third possibility, perhaps related to the second, is that in Leopard, regardless of whether the over-writing stage of "secure empty trash" succeeds or fails for any reason, the process will still continue to the unlinking stage, in effect deleting insecurely. Prior to Leopard, if over-writing failed, the file would not be unlinked, which had at least two benefits: i) since the file was never insecurely deleted, it would not be necessary to initiate a time consuming "erase free space" procedure to ensure that the data was destroyed; and ii) the very presence of the file serves as feedback to the user that the procedure has failed, unlike in Leopard where it fails silently.
    Either way, using "erase free space" shouldn't be affected by these issues. If the file has been deleted (i.e. copies do not still exist in a hidden cache file somewhere), then overwriting "free space" should prevent basic recovery software from restoring it, assuming the procedure is allowed to run to completion.

  • Hi guys, an empty folder is stuck in my trash & I get this message: "The Finder can't complete the operation because some data in the folder can't be read or written. (Error code -36). It won't shift no matter how I try to Secure Empty trash. Any ideas?

    Hi guys, an empty folder is stuck in my trash & I get this message: "The Finder can’t complete the operation because some data in the folder can’t be read or written. (Error code -36). It won't shift no matter how I try to Secure Empty trash. Any ideas?

    The Time Machines Backup is formated as Mac OS Extended (Case Sensitive, Journaled), my mac is formated as Mac OS Extended (Journaled).
    The names on the file are all Uppercase
    When I try to copy the Aperture file, it copies about 70% of the file (it's about 33GB in size), and halfway through I get this error.
    I'm able to copy 99.99% of all of the images if I open the Aperture Folder using the "show package contents" under the backups using finder (Time Machine Backups>Backups.backupdb>CQ Macbook Air>2012-04-30-070933>HD.....>Pictures>Aperture Library). The only file I can't copy is that picture, which I'm totally ok with deleting, but Finder won't delete it for me. If nothing else works, I could copy the individual masters and re-create the folders, however I'd hate to do this as I would have to go through 10,000+ pics

  • Secure Empty Trash reports wrong number of files

    Something that's been bugging me since even before OS 10.6: when I use Secure Empty Trash, the progress box always shows exactly 9 more files to be deleted than there are in the Trash (but counts down to 0 normally). Any idea what's up with that? All I can come up with is (a) it's intentional, and 9 fake files are created and then overwritten, as some sort of additional security (in which case, why 9?), or (b) there are 9 files in a .Trashes directory somewhere which cannot be deleted due to some extended attribute (in which case why no error message or notification?).
    Has anyone seen this? Ideas?

    In addition to your Home/Trash folder, there is a hidden .Trash folder at the top level of your hard drive, and also hidden .Trashes folders on each of your external drives, each containing a subfolder for every user account on your Mac. Even if they are all empty, the hidden folders themselves are all deleted when you Secure Empty, which accounts for the increased number of items that are being reported.

  • Secure emptying trash when getting privilges message

    Hi folks,
    Any help much appreciated.
    I decided the other day to use my Iomega Screenplay HD as a backup for my mac. Because it is NSCF (or whatever it is) I knew I'd have to re-format it in Fat32. I copied the contents of the HD to my Mac with the intention of writing it all back once the HD had been formatted.
    However when I read up about formatting this HD I discovered that once it had been formatted to Fat32 I would not be able to use the screenplay function any more (it comes in handy). So I decided not to format it and pick up a different HD to use as a backup.
    So anyway here's my problem. I copied 48gb of data to the Mac that I no longer want there (as I already have on the screenplay HD). So I moved it to the trash. I then hit the secure empty trash button (Im under the impression this is better as it completely clears valuable space on the mac's HD). However it will not delete. I keep getting the message "The operation cannot be completed because you do not have sufficient priviliges for some of the items".
    As I said, I would like to completely delete all these files as they are 48gb and are taking up room I can really do with. From what I can gather holding command and hitting delete will get rid of the files from the trash but they will still be on the computer taking up space.
    I've tried googling but am not getting anywhere. If someone can help I'd be much appreciated.
    Cheers.

    Just emptying the trash does only delete directory paths, but that is all that is required to completely release the disk space. As far as the system is concerned that space is empty and available.
    It is theoretically possible, under some conditions, to scan the empty space on a disk and reconstruct files that were once there. The purpose of Secure Empty Trash is to make that impossible by scribbling over the empty space. But if nobody goes to the trouble and expense of scanning for deleted files, then it makes no difference whether empty blocks contain random bit patterns or the remnants of old files. With ordinary Empty Trash, the space is as free and available as it will ever be.

  • MacBook Pro: Unable to Empty Trash (secure or otherwise).  Have tried all remedies suggested on Apple's site.  I think "Secure Empty Trash" bogs at the first file "iPhone4, 1_8.02_12A495_Restore.ipsw" at 1.78 GB size and goes no further.

    MacBook Pro: Unable to Empty Trash (secure or otherwise).  Have tried all remedies suggested on Apple's site.  I think "Secure Empty Trash" bogs at the first file "iPhone4, 1_8.02_12A495_Restore.ipsw" at 1.78 GB size and goes no further. When I try to move it out of Trash to a temporary location so I can empty remainder of Trash, I get the message "Some of the items you are moving are in use by another application. Moving the items can cause problems with the application using them. Are you sure you want to move these items?" at which point I select "Stop" to avoid possible disaster.  Can you help? Thanks.

    01/05/15 6:01:27.000 pm kernel[0]: Previous shutdown cause: -62
    That usually indicates an abnormal shutdown due to a hardware fault. The exact cause can only be determined by Apple, so schedule a Genius Bar Reservation.

  • Difference between "Empty trash" and "Secure Empty trash"

    Hi everyone,
    Today I used the "Secure Empty Trash" function by pressing the options key while "right clicking" on the trash. And in the message it said that if I empty the trash that way, I won't be able to recover the data. Which is what I wanted and is ok. But then the way it's said makes you think that if you don't do it that way then the normal "Empty Trash" doesn't really empty the trash and gives you the possibility of take the data back even after emptying the trash.
    I know some programs can help you do that. Either they recuperate the data after being installed separately or it's a sort of backup program like some by Norton on Windows were basically it backs up the Windows trash. But my question is, when they say with the "Empty Trash" message that you can recuperate the data, does it mean with one of those external programs or is there a hidden folder somewhere on Mac OS X where I can find all the stuff that ever went in my trash ?
    Thanks for your help !

    emptying the trash the normal way, deletes the reference of where the files exist on the hard disk, and shows the space these files occupy as empty space, now its deleted, and you can use whatever space these files used before deleting them, but you can use some pro apps that recover lost data, specially in case of mistaken deletion, as long as the sectors these files used on the hard disk were not used to store on by other data.
    while emptying the trash securely, does the same of normal emptying but it makes an additional step of over writing the sectors of the hard used by these data an amount of times, so its impossible for pro apps that recover data to read anything was stored on the hard disk after secure deletion.

  • Secure Empty Trash fails

    When trying to Secure Empty Trash if it contains locked files I select the "Remove Locked Items" option but the action fails and the trash isn't emptied. It can be emptied using the "Remove Locked Items" option and just using the normal empty trash option.
    Additionally it reports locked files in trash which on examination via "Get Info" are unlocked - these can't be securely emptied either but again can be using Empty Trash.
    It seems therefore that there might be a problem with secure empty and files which are or have been locked.
    I did a clean install of Yosemite and transferred user files back from a Time Machine backup. All went perfectly - no other issues.
    I have tried new files i.e. ones created under Yosemite rather than Mavericks - no difference.
    I have repaired permissions via disk utility and reset home directory permissions and ACL's which has made no difference. It happens on more than one account.
    Anyone else experienced this or could try it for me? 
    Thanks

    I've bumped this as I'm still having problems and wonder if someone could try and secure empty trash with a locked file in it and see what happens. I've created a new account and the same thing happens.
    If someone could create say a simple text file, lock it via the "Get Info" option and then delete it to trash. Try to secure empty trash and see if the "remove locked items" works and the trash is emptied and the locked file removed.
    Much appreciated if someone could do this
    Terry

  • Secure Empty Trash difficulty

    Recently I reinstalled Panther (10.3.9) using the Archive and Install method. This created a folder called Previous System.
    Since this folder was using up hard drive space without apparently contributing anything to the workings of the new system I trashed it.
    Since the Trash already contained a number of small files that I needed to wipe securely, I clicked on Secure Empty Trash.
    With Secure Empty Trash chugging along at a snail’s pace (about one item per second) the Trash was still not emptied some ten hours later. I dragged what remained of the Previous System Folder out of Trash and Secure Emptied the remaining Trash contents.
    Parts of this Previous System could not be trashed, securely or not. This was mainly the old Library. So I still have a GB or more wasting space on the hard drive.
    I have two questions arising out this little exercise:
    1. The Secure Empty Trash is a good feature. Why was it not designed to selectively deal with trashed files? Trashed files are often quite large and may not be particularly sensitive. They may not require the Secure Empty Trash treatment, but Secure Empty Trash lumps them in with other files that DO need to be securely wiped. So time is wasted.
    It indicates perhaps that two trash bins are needed. One for everyday stuff that empties normally, and one for stuff that needs to be securely wiped.
    2. Why can’t I totally trash the Previous System Folder?
    Maybe there’s ways around both of these problems?
    eMac   Mac OS X (10.3.9)  

    Jack,
    Your thoughtful questions deserve some expert answers, but all I have to offer you is a link to Solving Trash Problems, by Dr. Smoke.
    ;~)

Maybe you are looking for

  • HTMLDB Performance Very Slow

    We are using HTMLDB 1.6 with Oracle 10g. The DB is on its own server with Redhat Linux. The application server (Windows Server 2003) hosts only HTMLDB. We are experiencing extreme performance degradation when user volume increases on our HTMLDB apps.

  • SPRO config field for Material Master & Outline agreement Contracts

    Dear Gurus, I want the Field AUTO PO should be mandatory field - for creating New materials - Can you please suggest me in SPRO configuration? For outline Agreement ( contracts) - i want to make the Plant field as mandatiry - Can you please suggest m

  • How to create a blog like list with items indented.

    Hey guys i know there has got to be a easy way to do this but quite frankly im just stuck. Im trying to create a blog like list kind of like what you see in wordpress or even facebook. I've tried using the vbox, vgroup and some other without any luck

  • Wlst no module named wlstutility

    Hi, I am trying to create new domain with WLST , I am getting following error when I execute the script. Any pointers on this? java com.bea.plateng.domain.script.jython.WLST_offline rtq_preprod.py.jms Welcome to Weblogic Scripting Shell Traceback (in

  • Information System-Standard Analysis & Flexible Analysis

    HI Mates, Iam working on Reports.Can any body help me in configuring the things to generate reports for standard Analysis and Flexible analysis.T-Code-MCSI & MCSG respectively Regards.., Karthik