Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
mohamedkhallouq
GitHub Repository: mohamedkhallouq/content
Path: blob/main/files/en-us/mozilla/add-ons/webextensions/api/proxy/unregister/index.md
6566 views
---
title: proxy.unregister() slug: Mozilla/Add-ons/WebExtensions/API/proxy/unregister page-type: webextension-api-function tags: - API - Add-ons - Extensions - Method - Proxy - Reference - WebExtensions - unregister browser-compat: webextensions.api.proxy.unregister
---

{{AddonSidebar()}}{{deprecated_header}}

Warning: This method was deprecated in Firefox 68 and removed in Firefox 71. In Firefox 68–70, calling this method logs an error message to the console:

Proxy unregister error message.

Unregisters a Proxy Auto-Configuration (PAC) file. that was registered by an earlier call to {{WebExtAPIRef("proxy.register()")}}.

This is an asynchronous function that returns a Promise.

Syntax

let unregistering = browser.proxy.unregister()

Parameters

None.

Return value

A Promise that will be fulfilled with no arguments when the PAC file has been unregistered.

Examples

browser.proxy.unregister();

{{WebExtExamples}}

Browser compatibility

{{Compat}}

Note: Microsoft Edge compatibility data is supplied by Microsoft Corporation and is included here under the Creative Commons Attribution 3.0 United States License.