Delete calendars API
Delete calendars API
New API reference
For the most up-to-date API details, refer to Machine learning anomaly detection APIs.
Deletes a calendar.
Request
DELETE _ml/calendars/<calendar_id>
Prerequisites
Requires the manage_ml
cluster privilege. This privilege is included in the machine_learning_admin
built-in role.
Description
This API removes all scheduled events from the calendar then deletes the calendar.
Path parameters
<calendar_id>
(Required, string) A string that uniquely identifies a calendar.
Examples
resp = client.ml.delete_calendar(
calendar_id="planned-outages",
)
print(resp)
response = client.ml.delete_calendar(
calendar_id: 'planned-outages'
)
puts response
const response = await client.ml.deleteCalendar({
calendar_id: "planned-outages",
});
console.log(response);
DELETE _ml/calendars/planned-outages
When the calendar is deleted, you receive the following results:
{
"acknowledged": true
}
当前内容版权归 elasticsearch 或其关联方所有,如需对内容或内容相关联开源项目进行关注与资助,请访问 elasticsearch .