I have a Sandbox feature that was deployed to my SharePoint 2013 environment. I say "Sandbox" because if I run:
Get-SPFeature
It doesn't come up in the list. But if I run:
Get-SPFeature -Site <site url>
Then I can see my feature. Now, I'm trying to remove it using:
Uninstall-SPFeature -Identity <guid>
However I get the following error:
Uninstall-SPFeature : Cannot find a Feature object with Path or Id: <guid> in scope Local farm.
At line:1 char:1
+ Uninstall-SPFeature -Identity <guid>
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : InvalidData: (Microsoft.Share...ninstallFeature: SPCmdletUninstallFeature) [Uninstall-SPFeature], SPCmdletPipeBindException
+ FullyQualifiedErrorId : Microsoft.SharePoint.PowerShell.SPCmdletUninstallFeature
So I can only assume that this command only removes farm features from the server, and the TechNet page doesn't explicitly say anything about this. How can I remove this feature then?
EDIT 1: It may be worthwhile to know that I installed this feature through a sandbox solution WSP, by uploading it to the Solutions gallery and activating it there as discussed in this post.
EDIT 2: Thanks for all the answers so far. I've sort of managed to remove it using Uninstall-SPUserSolution and then Remove-SPUserSolution. I say "sort of" because the feature doesn't show up anymore when I do Get-SPFeature, nor the solution when I do Get-SPUserSolution. Apparently the feature was packed inside a sandbox solution. However the problem is still not solved, because the only thing the feature does is to deploy a site page like http://blablabla/FeatureDeployed, and so although the feature and the solution were removed, the site page still remains in the same address. Shouldn't the site page be deleted when the feature is removed?