This method removes a catalog definition (IBuildCatalog interface).
Syntax
IBuildCatalogs.Remove(Catalog)
Parameters
Catalog
The catalog definition to remove.
Example
The following example removes the catalog definition KMSampleCatalog2.
Option Explicit
On Error Resume Next
Dim objSearchAdmin, objBuildServer, objCatalogs
Set objSearchAdmin = CreateObject("Search.SearchAdmin.1")
Set objBuildServer = objSearchAdmin.BuildServer
Set objCatalogs = objBuildServer.BuildCatalogs
objCatalogs.Remove("KMSampleCatalog1")
'Release objects
Set objCatalogs = Nothing
Set objBuildServer = Nothing
Set objSearchAdmin = Nothing
See Also