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
url
required, url of object to deleteetag
the version string of content, if etag changed,data
must have been changed.headers
request headersheadersToExclude
array of keys of the headers you want to excludefetchOptions
options 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