# Delete custom field

> Remove a custom field definition.

Source: https://docs.mycrmsim.com/docs/custom-fields/delete-custom-field

```http
DELETE https://backend.mysmsgateway.app/api/v1/ext/custom-fields/{id}
```

- Category: myCRMSIM Contacts / Custom Fields
- Auth: Bearer access token
- Scope: `contacts.write`

Values already stored under the key stay on the contacts; they just stop being validated, shown and offered in filters. Writing the key on a contact again recreates a `text` definition.

## Parameters

| Name | In | Type | Required | Description |
| --- | --- | --- | --- | --- |
| `id` | path | number | yes | The field id. Example: `41` |

## Response 200

OK

```json
{
  "success": true,
  "message": "Custom field deleted",
  "data": {
    "id": 41,
    "workspace_id": 7,
    "field_key": "lead_source"
  }
}
```

## Response 401

Missing or invalid token

```json
{
  "success": false,
  "message": "Invalid or expired access token."
}
```

## Response 403

Missing scope

```json
{
  "success": false,
  "message": "Missing scope(s): contacts.write. This integration was granted: …"
}
```

## Response 404

Custom field does not exist or is not owned by the installer (same response for both)

```json
{
  "success": false,
  "message": "Custom field not found or not accessible to this token"
}
```
