ISearchManager2::DeleteCatalog method

Deletes an existing catalog and all associated indexed data from the Windows Search indexer.

Syntax


HRESULT DeleteCatalog(
  [in] LPCWSTR pszCatalog
);

Parameters

pszCatalog [in]

Type: LPCWSTR

Name of catalog to delete. The catalog must at some prior time have been created with a call to CreateCatalog().

Return value

Type: HRESULT

HRESULT indicating status of operation:

Return codeDescription
S_OK

Catalog previously existed and has now been successfully deleted.

S_FALSE

Catalog did not previously existed, no change.

 

FAILED HRESULT: Failure deleting catalog or invalid arguments passed.

Requirements

Minimum supported client

Windows 8 [desktop apps only]

Minimum supported server

Windows Server 2012 [desktop apps only]

See also

ISearchManager2

 

 

Show: