Zum Inhalt springen
DeutschlandGPT

Delete file from folder

Deletes a specific file from a document folder.

DELETEhttps://api.deutschlandgpt.de/v2/document-folders/{id}/files/{fileId}

Example request

curl https://api.deutschlandgpt.de/v2/document-folders/{id}/files/{fileId} \
  -X DELETE \
  -H "Authorization: Bearer $DGPT_API_KEY"

Parameters

idstring<uuid>required

Document folder ID

fileIdstringrequired

File ID to delete

Response

204No response body.

File deleted

Response codes

204

File deleted

401

Unauthorized

402

Insufficient credits or spending limit exceeded

Error
403

Requires enterprise workspace

404

Folder or file not found

Was this page helpful?