DELETE
/
classification
const options = {
  method: "DELETE",
  headers: {
    "x-api-key": "<your-api-key>",
    "Content-Type": "application/json",
  },
};

fetch("https://api.getomni.ai/classification?id=<classification-id>", options)
  .then((response) => response.json())
  .then((response) => console.log(response))
  .catch((err) => console.error(err));
{
  "success": true
}

This API endpoint permanently deletes a classification, including all associated classification options and examples. Make sure you no longer need the classification before deleting it.

Query Parameters

id
string
required

Unique identifier of the classification to delete.

Response

success
boolean

Whether the classification was deleted successfully.

const options = {
  method: "DELETE",
  headers: {
    "x-api-key": "<your-api-key>",
    "Content-Type": "application/json",
  },
};

fetch("https://api.getomni.ai/classification?id=<classification-id>", options)
  .then((response) => response.json())
  .then((response) => console.log(response))
  .catch((err) => console.error(err));
{
  "success": true
}