Removes the field from the API. It disappears from List custom fields, its values are no longer returned on people, and writing to it with custom_attributes returns CUSTOM_ATTRIBUTE_KEY_UNKNOWN.
Returns 204 No Content.
Fields synced from a CRM integration cannot be deleted. Remove them in the connected CRM. Built-in fields such as name or company cannot be deleted either.
Errors
| Status | Code | When |
|---|---|---|
400 | ATTRIBUTE_BUILT_IN | The key is a built-in field, not a custom field |
403 | API_KEY_INSUFFICIENT_SCOPE | The key does not hold CRM_DELETE |
404 | TEAM_NOT_FOUND | The workspace is not on the new contact model |
404 | ATTRIBUTE_NOT_FOUND | No field with this key, or the field is already deleted |
409 | ATTRIBUTE_MANAGED_BY_INTEGRATION | The field is managed by a CRM integration |