Skip to main content
DELETE
/
v1
/
files
/
{file_id}
!pip install vlmrun

from vlmrun.client import VLMRun

client = VLMRun(api_key="<VLMRUN_API_KEY>")

# Delete a file by ID
response = client.files.delete(file_id="<file-id>")
import { VlmRun } from "vlmrun";

const client = new VlmRun({ apiKey: "<VLMRUN_API_KEY>" });

// Delete a file by ID
await client.files.delete("<file-id>");
{
  "filename": "<string>",
  "bytes": 123,
  "id": "<string>",
  "created_at": "2023-11-07T05:31:56Z",
  "object": "file",
  "public_url": "<string>"
}
{
  "detail": [
    {
      "loc": [
        "<string>"
      ],
      "msg": "<string>",
      "type": "<string>",
      "input": "<unknown>",
      "ctx": {}
    }
  ]
}
This endpoint is only available for Pro and Enterprise customers.
!pip install vlmrun

from vlmrun.client import VLMRun

client = VLMRun(api_key="<VLMRUN_API_KEY>")

# Delete a file by ID
response = client.files.delete(file_id="<file-id>")
import { VlmRun } from "vlmrun";

const client = new VlmRun({ apiKey: "<VLMRUN_API_KEY>" });

// Delete a file by ID
await client.files.delete("<file-id>");

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

file_id
string
required

Response

Successful Response

Response to the file upload API.

filename
string | null
required

Name of the file

bytes
integer
required

Size of the file in bytes

purpose
enum<string>
required

Purpose of the file

Available options:
assistants,
batch,
fine-tune,
vision,
datasets
id
string | null

Unique identifier of the file

created_at
string<date-time>

Date and time when the file was created (in UTC timezone)

object
string
default:file

Type of the file

Allowed value: "file"
public_url
string | null

Presigned URL of the file