Remove a label
DELETE/api/labels/:label
Removes a label in one of two ways, chosen by mode. untag takes the label off every contact the caller can edit and deletes the caller's own label, so an empty label disappears too. delete-contacts permanently deletes every contact the caller can edit that has the label, then deletes the caller's own label. Affected address books are marked updated.
Only address books where the caller is editor or admin are changed; contacts in read-only books are skipped silently and the call still returns 204. Returns 400 if mode is missing or invalid.
Request
Responses
- 204
- 400
Done.
Request failed. error says why.