DeepFellow DOCS

Delete file

Delete file from database and storage.

DELETE
/v1/files/{file_id}
AuthorizationBearer <token>

In: header

Path Parameters

file_idFile Id

The ID of the file to use for this request.

Match^[0-9a-fA-F]{24}$

Header Parameters

OpenAI-Organization?Openai-Organization
OpenAI-Project?Openai-Project

Response Body

curl -X DELETE "https://loading/v1/files/5eb7cf5a86d9755df3a6c593" \
  -H "OpenAI-Organization: 5eb7cf5a86d9755df3a6c593" \
  -H "OpenAI-Project: 5eb7cf5a86d9755df3a6c593"
{
  "id": "5eb7cf5a86d9755df3a6c593",
  "project_id": "5eb7cf5a86d9755df3a6c593",
  "object": "file",
  "bytes": 0,
  "filename": "string",
  "purpose": "assistants",
  "created_at": 0,
  "expires_at": 0,
  "deleted": false
}
{
  "detail": [
    {
      "loc": [
        "string"
      ],
      "msg": "string",
      "type": "string"
    }
  ]
}

We use cookies on our website. We use them to ensure proper functioning of the site and, if you agree, for purposes such as analytics, marketing, and targeting ads.