How do I remove or disable the Photos app in El Capitan?

When I try to drag Photos.app or certain other bundled system apps to the trash in El Capitan, I get the error

“Photos.app” can’t be modified or deleted because it’s required by OS X.

The solution in Yosemite would be simply to use

$ sudo rm -Rf Photos.app

but this method is blocked in El Capitan. You instead get

Operation not permitted

I tried to change permissions with

$ chflags -R nouchg Photos.app

to no avail.

There must be a way around this!


UPDATE: I have unselected my answer because an icon-less and half-working (see screenshot) enter image description hereversion of Photos.app appeared on my system and opened automatically on SD-card insert. This worked and did not cause problems for months, and now Photos is back 🙁

El Capitan has a new feature called System Integrity Protection. It does not allow the deletion of preinstalled apps. This link gives details for disabling it. The short of it is:

Restart and hold Command+R to go into recovery mode. Open "Terminal", found in the "Utilities menu" and use the commands

$ csrutil disable; reboot

to disable SIP and reboot. Now open Terminal.app normally and do

$ cd /Applications/
$ sudo rm -Rf Photos.app

and live happily ever after.

A few caveats: I don't know what SIP does specifically, but this post suggests you should at least re-enable it right away (and perhaps not disable it at all, ever). Go ahead and do that by using the command

$ csrutil enable; reboot

in Recovery mode (see above). I also don't know whether El Capitan has Photos.app-dependent system processes or not, so your mac may potentially not work the way you want it after this. I have protected myself by first Archiving Photos.app and leaving Photos.app.zip in /Applications/, but again, I don't even know if this is good enough. So proceed at your own peril!

Finally, this will work to get rid of any bundled system app (but the same or more severe warnings apply).


Rather than removing the app, what I did was the following...

I disabled SIP (like Alejandro posted). Then I went into the applications folder, "Get Info" for the Photos app, then set the "Everyone" permissions to "No Access". This way, when anything is plugged in, the app will not launch (well it starts then stops) but the app remains in case you need to reenable it. Once that is done, reenable SIP.


Right click on "Photos" in "Applications" folder. Click "get Info". Change all permissions to "read and write". Drag Photos app to Trash.

This works for any stock apps by Mac OS.