Skip to main content
POST
Delete Knowledge
Use this API to hard-delete a knowledge source and all its derived chunks and rules. A source that is still processing, or that other sources were de-duplicated against, returns ABORTED (HTTP 409). The dependents error also carries details.dependentCount. Poll Get Ingest Status until the source is terminal, or delete the dependents first, then retry.

Endpoint

POST https://api.velt.dev/v2/memory/knowledge/delete Rate limit: 30 requests per minute per API key. This endpoint rejects unrecognized fields, so a misspelled key returns INVALID_ARGUMENT.

Headers

string
required
Your API key.
string
required

Body

Params

object
required

Example Requests

Delete a source

Response

The response confirms the deletion and reports how many derived chunks and rules were removed. An unknown sourceId, or one belonging to another workspace, returns NOT_FOUND. Deleting a de-duplicated source returns deletedChunks: 0 and deletedRules: 0, because its content belongs to the source it was de-duplicated against.

Success Response

Failure Response