Cannot reuse a deleted Managed Service Application name in SharePoint 2010

If you arrive in a situation where you delete a managed service application, then try and recreate it with the same name, you will get an error like this;

The application pool could not be created because the name is already in use. Select “Use existing application pool” or provide another name for the application pool.

Deleting the managed service application hasn’t removed the application, and because that name exists you need to remove it before you can reuse it. To do this first of all, open the SharePoint PowerShell window and run the following command;


When the list appears, you should see the relevant managed service application name. From here, run this command;

Remove-SpServiceApplicationPool “APPLICATION NAME HERE”

At this stage, you can run the Get command again, to ensure its gone. If so, simply try and recreate your managed service application as required.

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s