removeTrack

The removeTrack() method of the MediaStream interface removes a MediaStreamTrack from a stream.

MDN Reference