# Delete Custom Fields

Delete one or more custom fields.

Below is a Sample cURL request to delete particular custom fields.

{% file src="<https://3408618572-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MkMQ1evvT-4Hx1hloPt%2Fuploads%2FVxB6D6YsvnDTssXKNFPM%2Fsample_curl%20-%20delete_custom_field.txt?alt=media&token=98fba4fc-7ce5-45f5-93e1-720d9fb8430f>" %}

<mark style="color:green;">`POST`</mark>[`{{apiUrl}}custom_fields/add_update_custom_field`](https://api.evitalrx.in/v1/custom_fields/add_update_custom_field)

#### Request Body

| Name                                     | Type   | Description                                                                                                                                                                                     |
| ---------------------------------------- | ------ | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| apikey<mark style="color:red;">\*</mark> | String | Authentication token                                                                                                                                                                            |
| entity                                   | Number | type of the entity                                                                                                                                                                              |
| custom\_fields                           | Array  | <p>Array of custom field object containing id, attribute key and module name<br>For ex:<br>{id: string, attribute\_key: string, module: string}<br>Valid module are:<br>sales and customers</p> |
| action                                   | String | delete                                                                                                                                                                                          |

{% tabs %}
{% tab title="OK Success" %}

```json
{
    "status_code": "1",
    "status_message": "Success",
    "datetime": "2024-10-01 10:24:18",
    "data": null
}
```

{% endtab %}

{% tab title="Invalid id of attribute" %}

```json
{
    "status_code": "0",
    "status_message": "deleting failed",
    "datetime": "2024-10-01 10:25:52",
    "data": null
}
```

{% endtab %}
{% endtabs %}
