This method removes a path rule from the list of path rules.
Syntax
ISitePaths.Remove(Path)
Parameters
Path
The full path rule on the site that Search was crawling or avoiding.
Example
The following example removes the path C:\Tmp from the list of path rules that Search ignores on the Microsoft.com site.
Option Explicit
On Error Resume Next
Dim objSearchAdmin, objBuildServer, objCatalogs, objCatalog, objSites, objSite, objPaths
Set objSearchAdmin = CreateObject("Search.SearchAdmin.1")
Set objBuildServer = objSearchAdmin.BuildServer
Set objCatalogs = objBuildServer.BuildCatalogs
Set objCatalog = objCatalogs("KMSampleCatalog2")
Set objSites = objCatalog.objSites
Set objSite = objSites.Item("Microsoft.com")
Set objPaths = objSite.objPaths
objPaths.Remove("C:\Tmp")
'Release objects
Set objPaths = Nothing
Set objSite = Nothing
Set objSites = Nothing
Set objCatalog = Nothing
Set objCatalogs = Nothing
Set objBuildServer = Nothing
Set objSearchAdmin = Nothing
See Also