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 }
Deletes a classification and all associated options and examples