While working for a client project and deploying existing SharePoint solution face issue about orphaned features which gives error a feature with feature id XXXXX already exist in farm.
Read More
There are two solution either in feature set force install option or delete orphaned features using following powershell commands:
Get-SPFeature
| ? {$_.Scope -eq $null}
$feature
= Get-SPFeature | ? {$_.DisplayName -eq "FeatureToBeDeleted"}
$feature.Delete()