Trying to delete a site collection and got this error when doing so
remove-spsite: the request could not be completed because the specified solution was not found
For some reason I couldn't delete it in GUI and powershell throws out this error.
Get-SPSiteto Returns all site collections.
Remove-SPSite -Identity "http://sitename" -GradualDelete -Confirm:$False
This is will remove the given site collection and all included sites by using GradualDelete; confirmation has been suppressed.
If the issue still exists, try to repair your Content Database as the following.
$db = Get-SPContentDatabase "Content_DB_Name"; $db.Repair($false); $db.Update();
If there is no issue the output should be
<OrphanedObjects Count="0" />
count not equal to 0, then set the parameter to
$true if you want it to actually repair the database.
$false will just list what it would repair.