Skip to main content
DELETE
Delete a knowledge file

Authorizations

Authorization
string
header
required

Bearer token in the Authorization header — for example, Authorization: Bearer YOUR_API_KEY. Personal keys act as their owner; the Sessions API also accepts organization-owned service-account keys. Knowledge Files endpoints currently require a personal key.

Headers

If-Match
string

Strong ETag from the current file metadata. The delete returns 412 Precondition Failed if the validator is stale.

Path Parameters

file_path
string
required

Slash-delimited path under user_generated/ or skills/. Maximum length is 900 UTF-8 bytes, with at most 255 bytes per path segment.

Response

Knowledge file deleted.