# Javascript: SignatureFieldCollection.remove Method

> Removes a signature field from a Text Control document.

- **Product:** DS Server
- **Section:** Reference
- **Kind:** Method
- **Introduced:** 31.0
- **Path:** DS Server > Reference > JavaScript API > Javascript: SignatureFieldCollection.remove Method
- **356 words**
- **Web URL:** https://docs.textcontrol.com/ds-server/reference/javascript/signaturefieldcollection/remove-method/
- **LLMs URL:** https://docs.textcontrol.com/ds-server/reference/javascript/signaturefieldcollection/remove-method/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/ds-server/reference/javascript/signaturefieldcollection/remove-method/llms-full.txt

---

### Description

Removes a signature field from a Text Control document.

### Syntax

```javascript
<void> SignatureFieldCollection.remove(<SignatureField> field, [<EmptyRequestCallback> callback], [<ErrorCallback> errorCallback])
```

### Parameters

| Parameter | Description |
|---|---|
| field | Specifies the signature field to remove. |
| callback | Optional. Is called when the operation completed. |
| errorCallback | Optional. Is called when the operation failed with an error. |

### Examples

The following example demonstrates `SignatureFieldCollection.remove` in a practical document-editing workflow. It removes a signature field from a Text Control document.

```javascript
function onTxError(error) {
    console.error("TX Text Control error:", error.msg);
    error.handled = true;
}

function remove(field) {
    TXTextControl.signatureFields.remove(
        field,
        function() {
            console.log("remove completed.");
        },
        onTxError
    );
}
```

---

## Nearby

- **Previous:** [Javascript: SignatureFieldCollection.getItemByName Method](https://docs.textcontrol.com/ds-server/reference/javascript/signaturefieldcollection/getitembyname-method/llms-full.txt)
- **Next:** [SignatureFieldEventArgs Object](https://docs.textcontrol.com/ds-server/reference/javascript/signaturefieldeventargs/llms-full.txt)
