Zum Inhalt springen
DeutschlandGPT

Remove file from Custom GPT

Removes a file from a Custom GPT. The file itself is not deleted.

DELETEhttps://api.deutschlandgpt.de/v2/custom-gpts/{id}/files/{fileId}

Example request

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

Parameters

idstring<uuid>required

Custom GPT ID

fileIdstringrequired

ID of the file to remove

Response

204No response body.

File removed

Response codes

204

File removed

401

Unauthorized

402

Insufficient credits or spending limit exceeded

Error
404

Custom GPT or file not found

Was this page helpful?