Skip to main content
Delete a web source. The source, its refresh schedule, and the pages it crawled are removed. The index itself stays, along with everything else in it: pages from other web sources and documents you added directly. Use deleteIndex to remove the whole index and every source on it. The pages are removed by a purge job. Until it completes, the source reports status removing and still appears in listWebSources; afterwards it is gone. Poll purgeJobId with getJobStatus to know when the index no longer contains the source’s pages. A crawl that is still queued for the source is cancelled and the delete goes ahead. A crawl that is already running blocks the delete with 409; retry after it completes. Required fields: sourceId Example request
Responses
Errors
  • 400 when sourceId is missing.
  • 404 if the web source is not found.
  • 409 BUILD_IN_PROGRESS when the source’s crawl is running. Retry once it completes.