Lessons learned while retracting SP feature – run this one which will display all the orphaned feature (meaning if they were rectracted unproperly and prevent you for active them again during deployment). this can be in SP2010 or 2013

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

Once you find the feature GUID, using the above command, please use the below script and replace the GUID of your orphaned feature to delete the feature using this PowerShell command

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

$feature.Delete()

example:
$feature = Get-SPFeature | ? { $_.Id -eq “{a4717dbc-32f3-4746-a1c2-6e4423295e68}” }
$feature.Delete()

Hope it helps
Please subscribe to my Blog