Skip to main content
DELETE
/
v1
/
files
/
{file_id}
Delete File
const options = {method: 'DELETE', headers: {'x-api-key': '<api-key>'}};

fetch('https://api.decart.ai/v1/files/{file_id}', options)
  .then(res => res.json())
  .then(res => console.log(res))
  .catch(err => console.error(err));
{
  "detail": [
    {
      "loc": [
        "<string>"
      ],
      "msg": "<string>",
      "type": "<string>",
      "input": "<unknown>",
      "ctx": {}
    }
  ]
}

Authorizations

x-api-key
string
header
required

Headers

x-api-key
string
required

API key for authentication

Path Parameters

file_id
string
required

Response

Successful Response