unsubscribe

suspend fun unsubscribe(): Boolean(source)

The unsubscribe() method of the PushSubscription interface returns a Promise that resolves to a boolean value when the current subscription is successfully unsubscribed.

MDN Reference