JavaScript
Resources
Delete a String
Remove an embedded text snippet from a corpus.
DELETE
JavaScript
Overview
Permanently delete a text snippet resource along with its metadata and vector embeddings. This immediately removes the string content from search results and retrieval operations.Use cases: Retracting outdated guidance, removing obsolete policies, correcting misinformation, or managing corpus content quality.
Authentication
Requires valid JWT token or session authentication. You must own the parent corpus.Path Parameters
UUID
required
String resource identifier. Must belong to a corpus you own.Example:
b43bbf35-9819-47a8-8aff-d4eb4b3e8219Example request
Response Codes
No Content
String successfully deleted. No response body returned.
Not Found
String does not exist, was already deleted, or belongs to a corpus you don’t own.
What Gets Deleted
- String record - Database entry with title and content
- Vector embeddings - All chunks removed from Qdrant
- Metadata - Creation timestamp and character count
Immediate effect: Vector cleanup happens synchronously, so deletions immediately affect retrieval quality and query results.
Verification
Confirm successful deletion:Common Use Cases
Batch String Deletion
Batch String Deletion
Remove multiple strings matching criteria:
Replace Outdated Content
Replace Outdated Content
Update guidance by deleting old version and adding new:
Clean Up Duplicates
Clean Up Duplicates
Find and remove duplicate string content:
Policy Retraction Workflow
Policy Retraction Workflow
Safely retract policy or guidance:Compliance note: Maintain audit logs for all content deletions to meet regulatory requirements.
Selective Corpus Cleanup
Selective Corpus Cleanup
Clean up strings based on age or usage:
Client examples
- Python
- TypeScript / JavaScript
- Java

