If you don't know how to manage or configure SharePoint Search Scopes please have a look at this URL : http://technet.microsoft.com/en-us/library/ee792872(v=office.14).aspx
If you already have a lot of scopes under SharePoint you can use PowerShell to get a list of them:
You can get all the scopes existing on your Search Service Application, but as you can see there are too much scopes on the Search Service Application in my environment.
When you restore a site and re-enable the feature what creates the Search Scopes or when you run a Content Deployment it’s quite possible that SharePoint recreates the Scopes. I had a total of 367 scopes. Quite impossible but still impressive…
So, if you want to delete all the “orphan” scopes you need to execute the following script:
$searchapp
= Get-SPEnterpriseSearchServiceApplication “SEARCH SERVICE NAME”
$scopes
=
| Get-SPEnterpriseSearchQueryScope | ? {
$_
.owningsite -eq
$null
-
and
.canbedeleted}| select name, owningsite ,canbedeleted
| % {
.
delete
()}
Naomi N edited Original. Comment: Minor edit
Gokan Ozcifci edited Revision 1. Comment: Toc and content