# FieldDelete Method

> Deletes the marked text field selected with FieldCurrent, with its text when DeleteTotal is True or keeping the text as plain text when it is False.

- **Product:** TX Text Control ActiveX
- **Section:** Documentation
- **Kind:** Method
- **Path:** TX Text Control ActiveX > API Reference > TXTextControl > FieldDelete Method
- **223 words**
- **Web URL:** https://docs.textcontrol.com/tx-text-control-activex/reference/txtextcontrol/fielddelete-method/
- **LLMs URL:** https://docs.textcontrol.com/tx-text-control-activex/reference/txtextcontrol/fielddelete-method/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/tx-text-control-activex/reference/txtextcontrol/fielddelete-method/llms-full.txt

---

Deletes the marked text field specified by the [FieldCurrent](https://docs.textcontrol.com/tx-text-control-activex/reference/txtextcontrol/fieldcurrent-property/llms-full.txt) property, or changes it to simple text.

### Syntax

```vbscript
TXTextControl.FieldDelete DeleteTotal
```

### Parameters

| Parameter | Description |
|---|---|
| DeleteTotal | Specifies whether only the field or the field including its text is deleted. If this parameter is True, the marked text field including its text is deleted. If this parameter is False, the marked text field is deleted, but its text contents are preserved. |

### Return Value

The method returns True when the operation could be performed, otherwise it returns False.

### Data Types

| Name | Data type |
|---|---|
| DeleteTotal | Boolean |
| Return value | Boolean |

### See Also

- [Marked Text Fields](https://docs.textcontrol.com/tx-text-control-activex/document-editor/fields/llms-full.txt)
- [Programming Category: Text Fields](https://docs.textcontrol.com/tx-text-control-activex/reference/categories/text-fields/llms-full.txt)

---

## Nearby

- **Previous:** [FieldDblClicked Event](https://docs.textcontrol.com/tx-text-control-activex/reference/txtextcontrol/fielddblclicked-event/llms-full.txt)
- **Next:** [FieldDeleteable Property](https://docs.textcontrol.com/tx-text-control-activex/reference/txtextcontrol/fielddeleteable-property/llms-full.txt)
