Delete File

This endpoint is used to delete a file from Supavec.

POST/delete_file

Request Body

  • Name
    file_id
    Type
    string
    Description

    The ID of the file to delete.

JavaScript

const res = await fetch("https://api.supavec.com/delete_file", {
  method: "POST",
  headers: {
    "Content-Type": "application/json",
    authorization: apiKey,
  },
  body: JSON.stringify({ file_id }),
});

Response

{
  "success": true,
  "message": "File marked as deleted successfully",
  "deleted_file_id": "7c13cfbe-8c98-48aa-a324-e9adf2c39ecf"
}

Was this page helpful?