Microsoft recommends to deactivate a feature everywhere before you remove the feature from the environment. Unfortunately there is no way of determining where the feature is activated.
To solve this issue, I have created a PowerShell script.
How to use it:
- Download the PowerShell script
- Open the script in Notepad and edit the <featureid> text to match the id of the feature you are interested in
- Run the script
- Open the output in Microsoft Excel and use "*" as separator
- Based on the Scope column you can determine if the specific feature is a site or web feature