Skip to main content
DELETE
/
documents
/
{id}
TypeScript SDK
import { Orchata } from '@orchata/sdk';

const client = new Orchata({ apiKey: 'oai_your_api_key' });

await client.documents.delete('doc_123', 'space_123');
{
  "success": true,
  "message": "<string>"
}

Authorizations

Oai-Api-Key
string
header
required

Path Parameters

id
string
required
Example:

"document_123"

Query Parameters

spaceId
string
required

The ID of the space containing the documents

Example:

"space_123"

Response

Document deleted successfully

success
boolean
required
message
string
required