ISearchCrawlScopeManager::RemoveRoot method (searchapi.h)

Removes a search root from the search engine.

Syntax

HRESULT RemoveRoot(
  [in] LPCWSTR pszURL
);

Parameters

[in] pszURL

Type: LPCWSTR

The URL of a search root to be removed.

Return value

Type: HRESULT

Returns S_OK if successful; S_FALSE if the root is not found.

Remarks

Windows 7 and later: Check out the CrawlScopeCommandLine code sample to see how to define command line options for Crawl Scope Manager (CSM) indexing operations.

Requirements

Requirement Value
Minimum supported client Windows XP with SP2, Windows Vista [desktop apps only]
Minimum supported server Windows Server 2003 with SP1 [desktop apps only]
Target Platform Windows
Header searchapi.h
Redistributable Windows Desktop Search (WDS) 3.0