| 1234567891011121314151617181920212223242526272829303132333435363738 | --:api: delete-calendar-event:request: DeleteCalendarEventRequest:response: AcknowledgedResponse--[role="xpack"][id="{upid}-{api}"]=== Delete calendar events APIRemoves a scheduled event from an existing {ml} calendar.The API accepts a +{request}+ and respondswith a +{response}+ object.[id="{upid}-{api}-request"]==== Delete calendar events requestA +{request}+ is constructed referencing a non-nullcalendar ID, and eventId which to remove from the calendar["source","java",subs="attributes,callouts,macros"]--------------------------------------------------include-tagged::{doc-tests-file}[{api}-request]--------------------------------------------------<1> The ID of the calendar from which to remove the jobs<2> The eventId to remove from the calendar[id="{upid}-{api}-response"]====  Delete calendar events responseThe returned +{response}+ acknowledges the success of the request:["source","java",subs="attributes,callouts,macros"]--------------------------------------------------include-tagged::{doc-tests-file}[{api}-response]--------------------------------------------------<1> Acknowledgement of the request and its successinclude::../execution.asciidoc[]
 |