‘Delete Immediately…’ in OS X El Capitan

With OS X El Capitan (10.11) the Finder has gained a handy new feature, called Delete Immediately… .

To immediately delete one or more files or folders select them in the Finder, then hold down the Option and Command key and press Backspace. (⌥⌘⌫) 

Alternatively you can choose the command in the Finder’s File menu, while holding down the Option () key.

OS X El Capitan: Delete Immediately

Delete Immediately… does what it says: it deletes the item, rather than putting it into the Trash (⌘⌫). As such it accomplishes the same what formerly only was available through the Terminal command rm1

To find out if it really does the same as rm I tested both commands against various file protection methods:

File Security2Deletable with ⌥⌘⌫Deletable with rm
Flag: UF_IMMUTABLENo3Yes, as sudo
Flag: UF_APPENDNoYes, as sudo
ACL: deny deleteYes, with passwordYes, as sudo
Parent folder’s flag: UF_IMMUTABLENoNo
Parent folder’s flag: UF_APPENDNoNo
Parent folder’s flag: SF_IMMUTABLENoNo
Parent folder’s flag: SF_APPENDNoNo
Parent folder’s permissions: 444 or 000NoNo
Parent folder’s owner:group: root:wheelYes, with passwordYes, as sudo
Parent folder’s ACL: deny delete_childYes, with passwordYes, as sudo

We see that rm and ⌥⌘⌫ indeed behave almost identical, with one exception: If any of the user flags UF_IMMUTABLE (user immutable) or UF_APPEND (user append-only) is set ⌥⌘⌫ refuses to delete the file whereas sudo rm still deletes it.

Selectively Emptying the Trash

With ⌥⌘⌫ you can also delete files that are already sitting in the Trash can. In practice this means that now you can selectively empty the Trash, something that was impossible in the Finder prior to El Capitan.

Secure Deleting?

You may have noticed that in El Capitan Apple has removed the Secure Empty Trash feature. This is because of flash storage drives becoming more and more widespread. (See CVE-2015-5901.) With flash drives it is virtually impossible to securely delete (i.e. overwrite) data.4

It is important to understand that Delete Immediately… is not a replacement for the disappeared Secure Empty Trash! It just erases the catalog entry of the file, the same what happens when you non-securely empty the Trash.

So what can you do if you really need to securely delete a file?

If the file is on an unencrypted flash drive, you just can’t enforce a secure deletion. However if the file is on an “old-fashioned” hard disk (that is, no SSD, flash drive or Fusion Drive) you can use either of these Terminal commands:

  • rm -P /path/to/the/file (will overwrite 3 times)
  • the srm command, which has various options. For example srm -m /path/to/the/file will overwrite 7 times.

If you don’t know how to use the Terminal, here’s a nice introduction. If you are a LaunchBar user you are lucky, because you can use my Delete Action which adds various secure-delete commands to the LaunchBar GUI.

Please keep in mind that these overwrite commands only make sense if the data is not on a flash or Fusion Drive!

If want to work with sensible data on a flash drive you have to make sure beforehand that the data never touches the drive in unencrypted form. You could for example activate File Vault (on the startup drive), or you could store and edit the files exclusively on an encrypted disk image (.dmg)5 or inside a secure application like 1Password.


  1. Or rm -R for folders.
  2. Flag: ‘BSD File Flag’; ACL: ‘POSIX Access Control List’; Permissions: ‘UNIX Permissions’. Complete reference (Apple).
  3. Can be unlocked in the Finder’s Info window.
  4. Flash drives try to distribute writes, in order to keep the wear level even. So it is almost guaranteed that each “overwrite” pass will write to a new location – and not to the one where the original data is located.
  5. An encrypted 7z archive or something similar won’t help, since upon expansion the unencrypted data will get stored on the drive.