I'm trying to delete Xcode from my MacBook, so I could download the latest version (updating it in the app store just gives me that spinning circle, which has been going on for three days).

However, whenever I drag it into the trash, nothing happens. When I'm deleting it from the applications folder, it says the following:

The item “Xcode” can’t be moved to the Trash because some of its extensions are in use.

One of the suggestions online is to use Activity Monitor to find out any open instances of the app. Well, unless Xcode's extensions are named differently, I didn't see anything that even starts with X in there.

Can anyone help me out pls?

Additional Details:
I'm on El Capitan, attempting to update my Xcode from 6.something to the newer version 7, before this happened.

Fixed it by doing the following

1. Control-click on Xcode  
2. Select 'show package contents'  
3. Open folder  
4. Delete plugins folder  
5. Open finder window  
6. Navigate to folder containing Xcode app  
7. Press command-delete and move to bin  
  • 1
    It worked! Weird! Delete a subfolder to delete parent! how does it work? – neckTwi Jan 23 at 4:15
  • It is because XCode plug-ins are in use. @neckTwi. – Lal Krishna May 31 at 13:54

This worked for me:

 1. Open Activity Monitor 
 2. Search for XCode 
 3. Force quit all running instances of XCode
 4. Try again to move XCode to Trash

The problem for me was that I had the new version of Xcode running. The solution was to close Xcode and then I could delete the beta app file.

I had Xcode and the simulator running on another user profile. Closing these windows fixed the problem for me.

1. Log in to your other user profiles which share Xcode
2. Quit any running instance
3. Attempt to delete it 

Restarting the machine did the trick.

Your Answer

By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

Not the answer you're looking for? Browse other questions tagged or ask your own question.