---
title: "Deletes custom document fields from an existing template document."
method: DELETE
path: "/v2.1/accounts/{accountId}/templates/{templateId}/documents/{documentId}/fields"
tags: ["TemplateDocumentFields"]
---

# Deletes custom document fields from an existing template document.

`DELETE /v2.1/accounts/{accountId}/templates/{templateId}/documents/{documentId}/fields`

Deletes custom document fields from an existing template document.

## Path parameters

- `accountId` string, required
- `documentId` string, required
- `templateId` string, required

## Request body

- DocumentFieldsInformation
  - `documentFields` NameValue[] — The array of name/value custom data strings to be added to a document. Custom document field information is returned in the status, but otherwise is not used by Docusign. The array contains the elements: * `name`: A string that can be a maximum of 50 characters. * `value`: A string that can be a maximum of 200 characters. If you are using XML, the name/value pair is contained in a `nameValue` element.
    - `errorDetails` ErrorDetails — This object describes errors that occur. It is only valid for responses and ignored in requests.
      - `errorCode` string — The code associated with the error condition.
      - `message` string — A brief message describing the error condition.
    - `name` string — The name of the item.
    - `originalValue` string — The initial value of the item.
    - `value` string — The current value of the item.

## Response `200`

Successful response.

## Other responses

- `400` — Error encountered.

---

[API](https://skmtc.dev/docusign/apis/docusign-esignature-rest-api.md) · [All operations](https://skmtc.dev/docusign/apis/docusign-esignature-rest-api/llms.txt) · [OpenAPI document](https://skmtc.dev/docusign/apis/docusign-esignature-rest-api/revisions/77f1998c313d?raw)
