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) ) ;
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
Unique identifier of the classification to delete.
Response
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) ) ;