# Remove Method

> Removes the XML element at an index from 1 to Count from an XMLElements collection; returns 0 on error, 1 if the DTD makes it invalid, 2 on success.

- **Product:** TX Text Control ActiveX
- **Section:** Documentation
- **Kind:** Method
- **Path:** TX Text Control ActiveX > API Reference > XMLElements > Remove Method
- **Web URL:** https://docs.textcontrol.com/tx-text-control-activex/reference/xmlelements/remove-method/
- **LLMs URL:** https://docs.textcontrol.com/tx-text-control-activex/reference/xmlelements/remove-method/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/tx-text-control-activex/reference/xmlelements/remove-method/llms-full.txt

---

## On This Page

- [Syntax](https://docs.textcontrol.com/tx-text-control-activex/reference/xmlelements/remove-method/#syntax)
- [Parameters](https://docs.textcontrol.com/tx-text-control-activex/reference/xmlelements/remove-method/#parameters)
- [Return Value](https://docs.textcontrol.com/tx-text-control-activex/reference/xmlelements/remove-method/#return-value)
- [Data Types](https://docs.textcontrol.com/tx-text-control-activex/reference/xmlelements/remove-method/#data-types)
- [Examples](https://docs.textcontrol.com/tx-text-control-activex/reference/xmlelements/remove-method/#examples)
- [See Also](https://docs.textcontrol.com/tx-text-control-activex/reference/xmlelements/remove-method/#see-also)

---

## Nearby

- **Previous:** [Item Method](https://docs.textcontrol.com/tx-text-control-activex/reference/xmlelements/item-method/llms.txt)
- **Next:** [Obsolete Properties, Methods and Events](https://docs.textcontrol.com/tx-text-control-activex/reference/obsolete-members/llms.txt)
