The DeleteDataField method can be used to delete a data field within your dotMailer account.
You cannot delete a reserved datafield (FIRSTNAME, LASTNAME, ADDRESS, POSTCODE, GENDER) or any that are currently in use elsewhere in the system. This method will return an API dependencies object. This will specify the type of dependency and the ID of the dependency.
||This is the username from your API key. It is in the format of an email address and will look similar to apiuser‑email@example.com
||This is the password from your API key.
||This is the name of the data field you want to delete.