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.
SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. It only takes a minute to sign up.Sign up to join this community
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.