跳转到主要内容

Documentation Index

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

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

删除单个已经上传的文件

请求地址

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

路径参数

  • file_id string required
    文件的唯一标识 id

请求响应

返回单个文件对象

示例

from openai import OpenAI

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

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