Skip to main content
POST
/
v1
/
files
/
delete
Delete File
curl --request POST \
  --url https://api.minimax.io/v1/files/delete \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: <content-type>' \
  --data '{
  "file_id": "${file_id}",
  "purpose": "t2a_async_input"
}'
{
  "file_id": "${file_id}",
  "base_resp": {
    "status_code": 0,
    "status_msg": "success"
  }
}

Authorizations

Authorization
string
header
required

HTTP: Bearer Auth

Headers

Content-Type
enum<string>
default:application/json
required

The media type of the request body. Must be set to application/json to ensure the data is sent in JSON format.

Available options:
application/json

Body

application/json
file_id
integer
required

The unique identifier for the file.

purpose
enum<string>
required

The purpose of the file. Possible values are:

  1. voice_clone
  2. prompt_audio
  3. t2a_async
  4. t2a_async_input
  5. video_generation
Available options:
voice_clone,
prompt_audio,
t2a_async,
t2a_async_input,
video_generation

Response

200 - application/json
file_id
integer

The unique identifier for the file.

base_resp
object