PushManager.unregister(pushEndpoint) was a legacy instance method that asked the system to unregister and delete a specified push endpoint. It returned a DOMRequest; on success, req.result was a PushRegistration for the removed endpoint (MDN).
Pass the required arguments shown below. Check return values and browser support before you rely on the result.
Syntax
Call pushManager.unregister. Start with this line.
JavaScript
pushManager.unregister(pushEndpoint)
Call
What it does
pushManager.unregister(pushEndpoint)
Primary signature.
pushManager.unregister(...)
Call with the arguments your case needs.
Built into the browser. Call unregister(...) on a PushManager — no import required.
Capture the endpoint. Save it before unsubscribe() clears the subscription.
Unsubscribe locally. The browser stops accepting pushes for this app.
DELETE on the server. Prevents failed sends to a dead endpoint.
Confirm. Log success so the UI can show “Enable Push” again.
Compatibility
Browser Support
PushManager.unregister() is Deprecated and Non-standard on MDN. It is missing or removed in modern browsers. Prefer PushSubscription.unsubscribe().
✓ Deprecated · Non-standard
PushManager.unregister()
Legacy push endpoint removal — avoid in new code. Use subscription.unsubscribe() instead.
LegacyDeprecated API
Google ChromeNot supported — use unsubscribe()
Not supported
Mozilla FirefoxLegacy only — use unsubscribe()
Legacy only
Apple SafariNever supported — use unsubscribe()
Not supported
Microsoft EdgeFollow Chromium — use unsubscribe()
Not supported
OperaFollow Chromium
Not supported
Internet ExplorerNo Push API
Not supported
unregister()Limited
Bottom line: Feature-detect before calling. Build disable-push flows with getSubscription() then subscription.unsubscribe(), and delete the server record.
Frequently Asked Questions
It asked the system to unregister and delete a specified push endpoint. On success, the DOMRequest result was a PushRegistration for the removed endpoint. MDN superseded it with PushSubscription.unsubscribe().
Yes. MDN marks it Deprecated and Non-standard. It is not Experimental. Prefer subscription.unsubscribe() in new code.
A pushEndpoint string — the URL of the endpoint to remove. MDN’s sample used navigator.push.unregister(pushEndpoint).
A DOMRequest object (legacy Mozilla pattern), not a Promise. Handle success with req.onsuccess and errors with req.onerror.
Call PushSubscription.unsubscribe() on the object from getSubscription() or subscribe(). It returns a Promise that resolves to a boolean.
You may see it paired with register() in old Mozilla push samples. Knowing it helps you migrate to unsubscribe() and update your server.