Delete LLM chats and/or messages

March 7, 2025

Table of contents

  1. Request Headers
  2. Query Parameters
  3. Responses
  4. Examples
  5. Try It

Equivalent of chat.minimax.io.

Use your chat.minimax.io account for this endpoint, see Setup MiniMax for details.

https://api.useapi.net/v1/minimax/llm/?…

Request Headers
Authorization: Bearer {API token}
Query Parameters
  • account is optional when only one LLM chat.minimax.io account configured. However, if you have multiple accounts configured, this parameter becomes required.

  • chatIDs is optional, specify comma-separated list of chatID values that you want to delete. Set it to all to delete all chats for your account.

  • msgIDs is optional, specify a comma-separated list of msgID values that you want to delete.

Responses
Examples
  • curl "https://api.useapi.net/v1/minimax/llm/?account=<account>&msgID=<msgID>" \
       -H "Accept: application/json" \
       -H "Authorization: Bearer …" 
    
  • const token = "API token";
    const account = "Previously configured account"; 
    const msgID = "Message msgID you want to delete"; 
    const apiUrl = `https://api.useapi.net/v1/minimax/llm/?account=${account}&msgID=${msgID}`; 
    const response = await fetch(apiUrl, {
      method: 'DELETE',
      headers: {
        "Authorization": `Bearer ${token}`,
      },
    });
    const result = await response.json();
    console.log("response", {response, result});
    
  • import requests
    token = "API token"
    account = "Previously configured account"
    msgID = "Message msgID you want to delete"
    apiUrl = f"https://api.useapi.net/v1/minimax/llm/?account={account}&msgID={msgID}"
    headers = {
        "Content-Type": "application/json", 
        "Authorization" : f"Bearer {token}"
    }
    response = requests.delete(apiUrl, headers=headers)
    print(response, response.json())
    
Try It