Connections

Delete file(s) from a connection

Deletes one or more files from the specified connection. Provide either a single `file` name or an array of `files`, but not both. The deletion from the primary database is immediate; associated vectors in Qdrant will be removed synchronously by default, or queued if `wait=false`.

DELETE
/api/connections/{id}/files

Authorization

AuthorizationRequiredBearer <token>

Bearer token authentication required

In: header

Request Body

application/jsonRequired
bodyRequiredobject | object

Provide exactly one of file or files.

Path Parameters

idRequiredstring

The unique identifier of the connection.

curl -X DELETE "https://app.dcup.dev/api/connections/string/files" \
  -H "Authorization: Bearer <token>" \
  -H "Content-Type: application/json" \
  -d '{
    "file": "document.pdf"
  }'

Files deleted successfully

{
  "code": "ok",
  "message": "Deleted 'document.pdf' successfully"
}