Skip to main content
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.
Irreversible: Deletion cannot be undone. The string record and its vector embeddings are permanently removed.
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-d4eb4b3e8219

Example 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

Remove multiple strings matching criteria:
Update guidance by deleting old version and adding new:
Version tracking: Include version dates or identifiers in string titles for easy tracking and replacement.
Find and remove duplicate string content:
Safely retract policy or guidance:
Compliance note: Maintain audit logs for all content deletions to meet regulatory requirements.
Clean up strings based on age or usage:
Content quality: Regularly review and remove outdated strings to maintain high-quality retrieval results and corpus relevance.

Client examples

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

id
string<uuid>
required

A UUID string identifying this String.

Response

204

No response body