# Delete Custom Field Deletes the specified custom field and its associated data. ## Endpoint `DELETE /dcapi/customColumn/removeCustomColumn` ## Request URL `https://{server-hostname}:8383/dcapi/customColumn/removeCustomColumn` ## Scope `CustomField.DELETE` ## Header `Authorization: d92d4xxxxxxxxxxxxx15f52` ## Request Parameters ### Request Headers - **Content-Type** `string` — **Mandatory**: `application/deletedCustomColumnDetails.v1+json` ### Request Body `application/json` #### JSON Object - **tableName** `string` — **Mandatory** - The table name can be any of the names provided in the list below: 1. `ManagedComputerCustomFields` - if customfield created in computer view 2. `InvSWCustomFields` - if customfield created in software view. - **actualColumnName** `string` — **Mandatory** - The actual name of the custom field column for which the User Data Type length is required. `actualColumnName` can be obtained from the `columName` key from the response of [/dcapi/customFields/computers/{ID}](https://www.manageengine.com/products/desktop-central/help/api/onpremise/custom-field-get-computer-custom-fields.html). ### Sample Request ```curl curl --request DELETE \ --url https://appdomain/dcapi/customColumn/removeCustomColumn \ --header 'Authorization: d92d4xxxxxxxxxxxxx15f52' \ --header 'Content-Type: application/deletedCustomColumnDetails.v1+json' \ --data '{"actualColumnName":"COL2","tableName":"ManagedComputerCustomFields"}' ``` ### Sample Request Body ```json { "actualColumnName": "COL2", "tableName": "ManagedComputerCustomFields" } ``` ## Response Parameters ### HTTP Code 200 #### Response Body `application/json` ##### JSON Object - **status** `string` - Indicates whether the custom field removal was successful. - **message** `string` - Confirmation message indicating the custom field has been removed. ### Possible Response Codes - **200** `HTTP code` ### Sample Response: HTTP 200 ```json { "message": "Custom field COL2 has been removed successfully", "status": "SUCCESS" } ``` ![](https://www.zohowebstatic.com/sites/zweb/images/people/ico-help.png) **Duration:** 1 minute | **Threshold:** 30 | **Lock period:** 5 minutes Duration - Time window for the threshold. Threshold - Number of API calls allowed within the specified duration. Lock Period - Wait time before consecutive API requests.