Deletes the specified label from a site and removes it from the contacts it applies to.
You can only call this method when authenticated as a Wix app or Wix user identity.
function deleteLabel(key: string): Promise<void>;
Label key to delete.
import { labels } from "@wix/crm";
async function deleteLabel(key) {
const response = await labels.deleteLabel(key);
}
This method doesn’t return any custom errors, but may return standard errors. Learn more about standard Wix errors.