Delete a file
Delete a previously uploaded file.
Endpoint
DELETE https://api.stepfun.ai/v1/files/{file_id}
Path parameters
file_idstringrequired
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"))
Response
{
"id":"file-stepabc",
"object": "file",
"deleted": true
}Last updated on