RemoveScopeRule() not removing URL from indexing. RRS feed

  • Question

  • HI,

    I want to remove specific URL from indexing. For the same I am using SearchCrawlScopeManager->RemoveScopeRule() API. But after executing the code I can still see the URL in indexing.

    I called API like this-

    hr = pSearchCrawlScopeManager->RemoveDefaultScopeRule(L"D:\\test");

    hr = pSearchCrawlScopeManager->SaveAll();

    Please let me know if I am missing something. 

    I have used AddUserScopeRule() api also, which is working perfectly fine.  


    Viyang C.

    Monday, January 30, 2017 1:10 PM

All replies

  • The input path for RemoveDefaultScopeRule or RemoveScopeRule methods should be preceded with 


    For example it should look like this-

    hr = pSearchCrawlScopeManager->RemoveDefaultScopeRule("file:///D:\\test");

    Hope this helps


    Komal S.

    Wednesday, November 14, 2018 5:05 AM