JavaScript
Resources
Delete a URL
Stop serving content that was synced from a specific URL.
DELETE
JavaScript
Overview
Permanently delete a URL resource along with its crawled content, metadata, and vector embeddings. This immediately removes the web page content from search results and retrieval operations.Use cases: Removing outdated web content, refreshing stale pages, managing dead links, or retracting content from sources that no longer exist.
Authentication
Requires valid JWT token or session authentication. You must own the parent corpus.Path Parameters
UUID
required
URL resource identifier returned when the URL was created.Example:
f0d6fe08-87c8-4eb0-80d8-7a2de638514bExample request
Response Codes
No Content
URL successfully deleted. No response body returned.
Not Found
URL does not exist, was already deleted, or belongs to a corpus you don’t own.
What Gets Deleted
- URL record - Database entry with URL and metadata
- Crawled content - Extracted text and page information
- Vector embeddings - All chunks removed from Qdrant
- Crawl metadata - Content type, title, description, and sitemap info
Storage impact: Corpus size reported by
GET /api/corpora/ decreases after background cleanup completes.Common Use Cases
Refresh Stale Content
Refresh Stale Content
Delete and re-add URLs to fetch updated content:
Clean Up Dead Links
Clean Up Dead Links
Remove URLs that return 404 or crawl errors:
Batch URL Deletion
Batch URL Deletion
Remove multiple URLs from a specific domain or pattern:
Content Source Migration
Content Source Migration
Replace URLs from old domain with new domain:
Selective Content Pruning
Selective Content Pruning
Remove URLs based on age or relevance:
Sitemap URL Cleanup
Sitemap URL Cleanup
Remove all URLs added via sitemap scraping:Use case: Useful when sitemap scraping added too many irrelevant pages.
Other resources unaffected: Removing URLs does not affect files or strings in the same corpus. Each resource type is independent.
Client examples
- Python
- TypeScript / JavaScript
- Java

