deleteObject
deleteObject
delete an object
const response = await deleteObject({
url: 'https://caldav.icloud.com/123456/calendars/A5639426-B73B-4F90-86AB-D70F7F603E75/test.ics',
etag: '"63758758580"',
headers: {
authorization: 'Basic x0C9uFWd9Vz8OwS0DEAtkAlj',
},
});
Arguments
urlrequired, url of object to deleteetagthe version string of content, if etag changed,datamust have been changed.headersrequest headersheadersToExcludearray of keys of the headers you want to excludefetchOptionsoptions to pass to underlying fetch function
Return Value
Behavior
send DELETE request with etag header object will not be deleted if etag do not match