disconnect

The disconnect() method of the ResizeObserver interface unobserves all observed Element or SVGElement targets.

MDN Reference