Delete File

Supported Providers
  • OpenAI

  • TogetherAI

Delete File

delete
Authorizations
Path parameters
file_idstringRequired

The ID of the file to use for this request.

Responses
200

OK

application/json
delete
curl https://api.portkey.ai/v1/files/file-abc123 \
  -X DELETE \
  -H "x-portkey-api-key: $PORTKEY_API_KEY" \
  -H "x-portkey-virtual-key: $PORTKEY_PROVIDER_VIRTUAL_KEY" \
200

OK

{
  "id": "text",
  "object": "file",
  "deleted": true
}

Last updated

Was this helpful?