ISearchManager2::DeleteCatalog method (searchapi.h)
Deletes an existing catalog and all associated indexed data from the Windows Search indexer.
Syntax
HRESULT DeleteCatalog(
[in] LPCWSTR pszCatalog
);
Parameters
[in] pszCatalog
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 code | Description |
---|---|
|
Catalog previously existed and has now been successfully deleted. |
|
Catalog did not previously existed, no change. |
FAILED HRESULT: Failure deleting catalog or invalid arguments passed.
Requirements
Requirement | Value |
---|---|
Minimum supported client | Windows 8 [desktop apps only] |
Minimum supported server | Windows Server 2012 [desktop apps only] |
Target Platform | Windows |
Header | searchapi.h |