Delete an alert rule
DELETE
/alerts/rules/{id}
const url = 'https://your-server.example/api/alerts/rules/1';const options = {method: 'DELETE', headers: {cookie: 'session=<session>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request DELETE \ --url https://your-server.example/api/alerts/rules/1 \ --cookie session=<session>Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”id
required
integer format: int64
Responses
Section titled “Responses”Deleted.