Skip to main content
Version: 2.1.2

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 delete
  • headers request headers
  • headersToExclude array of keys of the headers you want to exclude
  • fetchOptions options to pass to underlying fetch function

Return Value

fetch api response

Behavior

use DELETE request to delete a new vcard