"Permalink to this heading">#</a></h2>
<p>To close a listener use the <a class="reference external" href="https://ngrok.github.io/ngrok-python/module.html">disconnect</a> method with the <code class="docutils literal notranslate"><span class="pre">url</span></code> of the listener to close. If there is an asynchronous runtime running the <a class="reference external" href="https://ngrok.github.io/ngrok-python/module.html">disconnect</a> method returns a promise that resolves when the call is complete.</p>
<