Skip to main content

Documentation Index

Fetch the complete documentation index at: https://platform.stepfun.ai/docs/llms.txt

Use this file to discover all available pages before exploring further.

Delete a previously uploaded file.

Endpoint

DELETE https://api.stepfun.ai/v1/files/{file_id}

Path parameters

  • file_id string required
    Unique file ID.

Response

Returns the deleted File object.

Example

from openai import OpenAI

client = OpenAI(api_key="STEP_API_KEY", base_url="https://api.stepfun.ai/v1")

print(client.files.delete("file-stepabc"))
{
  "id": "file-stepabc",
  "object": "file",
  "deleted": true
}