deselectAll

The deselectAll() method of the SVGSVGElement interface unselects any selected objects, including any selections of text strings and type-in bars.

MDN Reference