deleteVCard
deleteVCard
delete one vcard on the target addressBook
const result = await deleteCalendarObject({
vCard: {
url: 'https://contacts.icloud.com/123456/carddavhome/card/test.vcf',
etag: '"63758758580"',
},
headers: {
authorization: 'Basic x0C9uFWd9Vz8OwS0DEAtkAlj',
},
});
Arguments
vCard
required, DAVVCard 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 vcard