# Javascript: TextPart.removeSubTextPart Method

> Obsolete. This method will be removed in one of the next versions. Removes a SubTextPart from the TextPart.

> **Note:** This is deprecated and should not be used in new work.

- **Product:** DS Server
- **Section:** Reference
- **Kind:** Method
- **Introduced:** 26.0
- **Path:** DS Server > Reference > JavaScript API > Javascript: TextPart.removeSubTextPart Method
- **Web URL:** https://docs.textcontrol.com/ds-server/reference/javascript/textpart/removesubtextpart-method/
- **LLMs URL:** https://docs.textcontrol.com/ds-server/reference/javascript/textpart/removesubtextpart-method/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/ds-server/reference/javascript/textpart/removesubtextpart-method/llms-full.txt

---

## On This Page

- [Description](https://docs.textcontrol.com/ds-server/reference/javascript/textpart/removesubtextpart-method/#description)
- [Syntax](https://docs.textcontrol.com/ds-server/reference/javascript/textpart/removesubtextpart-method/#syntax)
- [Parameters](https://docs.textcontrol.com/ds-server/reference/javascript/textpart/removesubtextpart-method/#parameters)
- [Examples](https://docs.textcontrol.com/ds-server/reference/javascript/textpart/removesubtextpart-method/#examples)

---

## Nearby

- **Previous:** [Javascript: TextPart.index Property](https://docs.textcontrol.com/ds-server/reference/javascript/textpart/index-property/llms.txt)
- **Next:** [Javascript: TextPart.selection Property](https://docs.textcontrol.com/ds-server/reference/javascript/textpart/selection-property/llms.txt)
