Delete Source
Requests deletion of a source and returns the deletion job.
For what happens to a deleted source’s documents, see Delete Documents and Sources.
Authorization
Path parameters
…/knowledge-fs/spaces/<knowledge base ID>), and the segment after /datasets/new/ in the address bar.Query parameters
cascade also deletes the documents the source produced. keep keeps them: they are hidden while the deletion job runs and come back when it completes, with source_id set to null and no longer refreshed.
Before deleting with keep, save the IDs of files with this source_id from List Document Files: their source_id becomes null once the deletion completes.
Default: "cascade"
cascadekeepHeaders
202. Reusing the key for a different request, or from another API key, answers 409. Use printable ASCII characters without leading or trailing whitespace.Length: 8–255
Body
application/jsonversion from List Sources or Get Source. A stale value answers 409 and nothing changes.Range: >= 1
Responses
Deletion accepted. job describes the background deletion.
Get Source answers 404 from the moment the deletion is accepted. To confirm that it finished, poll Get Deletion Job (the status_url) until run_state is completed or failed.
null for source deletions.SERVICE_API_URL, otherwise a path that starts with /v1/. The same value is sent in the Location response header.