deleteCalendarObject
deleteCalendarObject
delete one calendar object on the target calendar
const result = await deleteCalendarObject({
calendarObject: {
url: 'https://caldav.icloud.com/123456/calendars/A5639426-B73B-4F90-86AB-D70F7F603E75/test.ics',
etag: '"63758758580"',
},
headers: {
authorization: 'Basic x0C9uFWd9Vz8OwS0DEAtkAlj',
},
});
Arguments
calendarObject
required, DAVCalendarObject to deleteheaders
request headersheadersToExclude
array of keys of the headers you want to excludefetchOptions
options to pass to underlying fetch function
Return Value
Behavior
use DELETE request to delete a new calendar object