removeRange

fun removeRange(range: Range)(source)

The Selection.removeRange() method removes a range from a selection.

MDN Reference