Newer Version Available
Delete Lightning Experience Event Series
Deleting a Single Event in a Series
Use the sObject Rows resource to delete event records. To delete a single occurrence in a series, specify the event ID and use the DELETE method of the resource to delete a record.
Delete from an Event Onwards
To delete all events in a series from a specific occurrence and onwards, specify the event ID and use the DELETE method of the resource to delete a record. When calling this method, IsRecurrence2 must be true and IsRecurrence2Exclusion must be false.
- Example for deleting from an event onwards
-
1curlhttps://yourInstance.salesforce.com/services/data/v53.0/sobjects/Event/00Uxx0000000000/fromThisEventOnwards -H - Example request body
-
1None needed - Example response body after successfully deleting events from the series
-
1{ 2success: We’re deleting the selected events from the series. Wait for all events to be removed. 3}
Delete All Events in a Series
To delete an entire event series, specify the event ID of the first occurrence in the series and use the DELETE method of the resource to delete a record.
- Example for deleting an entire series
-
1curlhttps://yourInstance.salesforce.com/services/data/v53.0/sobjects/Event/00Uxx0000000000/fromThisEventOnwards -H "Authorization: Bearer token -X DELETE - Example request body
-
1None needed - Example response body after successfully deleting events from the series
-
1{ 2success: We’re deleting the selected events from the series. Wait for all events to be removed. 3}
Considerations
- Occurred before the original value of Recurrence2PatternStartDate.
- Are defined as child events.
If the event series originated outside of Salesforce and the event ID of the first occurrence is unavailable, you can’t delete all events in a series. Instead, delete events from a specific occurrence onwards.