Remove orphaned feature

SP2013


Hello everyone,

Today I’m going to talk about a problem that can happen in a development phase.

When you test your solutions, you may find yourself confronted with this kind of error when deploying:

Sorry, something went wrong

A feature with ID 15/{GUID} has already been installed in this farm. Use the force attribute to explicitly re-install the feature.

First of all, you can delete the feature using this PowerShell command

$feature = Get-SPFeature | ? { $_.Id -eq “{GUID}” }

$feature.Delete()

If you want to do some prevention, you can also run this one which will display all the orphaned feature (meaning they was rectracted unproperly and prevent you for active them again during deployment)

Get-SPFeature | ? { $_.Scope -eq $null }

The tips to display orphaned feature comes from this post: http://sharepoint.stackexchange.com/questions/16525/how-to-remove-orphaned-features thanks to the author!

Hope this helps.

Christopher.

 

Advertisements
This entry was posted in SharePoint 2010, SharePoint 2013 and tagged , . Bookmark the permalink.

Leave a Reply

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

WordPress.com Logo

You are commenting using your WordPress.com 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 )

Google+ photo

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

Connecting to %s