---
updatedAt: 2025-10-20T18:31:44.000Z
agentTools:
  projectIndex: https://marketing.developer.dotdigital.com/llms.txt
---

# DeleteDataField

Deletes a contact data field within the account

<span class="callRateMedium"></span>

This method can be used to delete a contact data field within your account. You can't delete a reserved contact data field (FIRSTNAME, LASTNAME, ADDRESS, POSTCODE, GENDER) or any that are currently in use elsewhere in the system.

This operation will return an API dependencies object. This will specify the type of dependency and the ID of the dependency.

**SOAP action:** [http://apiconnector.com/v2/ApiService/DeleteDataField](https://marketing.developer.dotdigital.com/docs/deletedatafield)

> 📘 Input and output parameters
>
> The input and output parameters for this method are:
>
> **Input parameters**
>
> * FieldName - *required; string*
>
> **Output parameters**
>
> * DeleteDataFieldResult
>   * Dependencies - *array of Dependency*
>     * Type - *string ('Campaign', 'Survey', 'MicrositePage', 'DynamicContent', 'ContactLabel', 'SurveyQuestion', 'AddressBook', 'DynamicContentRule', 'CampaignLink', 'CampaignTemplate')*
>     * ObjectId - *integer*
>   * Result - *boolean*

**Example**

```csharp
using (var client = new ApiServiceClient())
{
	client.ClientCredentials.UserName.UserName = "username";
	client.ClientCredentials.UserName.Password = "password";

	var fieldName = "BIRTHDAY";
	var dependencyResult = client.DeleteDataField(fieldName);
}
```

# Sibling pages

* [CreateDataField](https://marketing.developer.dotdigital.com/reference/createdatafield.md)
* [GetDataFields](https://marketing.developer.dotdigital.com/reference/getdatafields.md)