Remove a webhook.
326568
def deleteWebhook(self, hook_id):
        """"""
        path = '/'.join(['notification', 'webhook', hook_id])
        return self.rachio.delete(path)
1181574
def remove_alert(thing_name, key, session=None):
    
    return _request('get', '/remove/alert/for/{0}'.format(thing_name), params={'key': key}, session=session)
854022
def delete_webhook(self, scaling_group, policy, webhook):
        
        uri = "/%s/%s/policies/%s/webhooks/%s" % (self.uri_base,
                utils.get_id(scaling_group), utils.get_id(policy),
                utils.get_id(webhook))
        resp, resp_body = self.api.method_delete(uri)
        return None
1049014
def unhook_all():
    
    _listener.start_if_necessary()
    _listener.blocking_keys.clear()
    _listener.nonblocking_keys.clear()
    del _listener.blocking_hooks[:]
    del _listener.handlers[:]
    unhook_all_hotkeys()
1300960
@FFDCIgnore(IllegalStateException.class)
    public synchronized void removeShutdownHook() {
        if (shutdownInvoked)
            return;

        try {
            if (hookSet.compareAndSet(true, false)) {
                Runtime.getRuntime().removeShutdownHook(this);
            }
        } catch (IllegalStateException e) {
            // ok. based on timing, if we start shutting down, we may
            // not be able to remove the hook.
        }
    }
777490
public void deleteSystemHook(Integer hookId) throws GitLabApiException {

        if (hookId == null) {
            throw new RuntimeException("hookId cannot be null");
        }

        Response.Status expectedStatus = (isApiVersion(ApiVersion.V3) ? Response.Status.OK : Response.Status.NO_CONTENT);
        delete(expectedStatus, null, "hooks", hookId);
    }
935518
function () {
        YAHOO.util.Event.purgeElement(this.link);
        this.current.parentNode.removeChild(this.current);
        this.link = this.span = null;
    }
1235981
public function removeWebhook($webhookId, $idempotencyKey = null)
    {
        $headers = array();

        if ($idempotencyKey) {
            $headers[self::IDEMPOTENCY_KEY_HEADER] = $idempotencyKey;
        } else {
            $headers[self::IDEMPOTENCY_KEY_HEADER] = UUID::v4();
        }
        $path    = self::WEBHOOKS_PATH.'/'.$webhookId;

        $response = $this->execute($path, HttpVerb::DELETE, null, null, $headers);

        $result = null;
        if ($response->getCode() == 200) {
            $resultArray = $this->decodeData($response);
            $result      = new Webhook($resultArray);
        } else {
            $this->handleError($response);
        }

        return $result;
    }
477009
def update_webhook(self, webhook_url, webhook_id, events=None):
        """"""
        hooks = self._request(MINUT_WEBHOOKS_URL, request_type='GET')['hooks']
        try:
            self._webhook = next(
                hook for hook in hooks if hook['url'] == webhook_url)
            _LOGGER.debug("Webhook: %s", self._webhook)
        except StopIteration:  # Not found
            if events is None:
                events = [e for v in EVENTS.values() for e in v if e]
            self._webhook = self._register_webhook(webhook_url, events)
            _LOGGER.debug("Registered hook: %s", self._webhook)
            return self._webhook
381129
public function remove() : void
    {
        if ($this->onlineIdParameter() === 'me') return;

        $this->delete(sprintf(self::USERS_ENDPOINT . 'friendList/%s', $this->client->onlineId(), $this->onlineId()));
    }
983470
def off(hook_type, name = ANY_STATE, &callback)
      sync_exclusive do
        hooks.unregister hook_type, name, callback
      end
    end
1225448
def replace_webhook(self, scaling_group, policy, webhook, name,
            metadata=None):
        
        return self._manager.replace_webhook(scaling_group, policy, webhook,
                name, metadata=metadata)
850986
public void removeShutdownHook(final Runnable task) {
        if (inEventLoop()) {
            shutdownHooks.remove(task);
        } else {
            execute(new Runnable() {
                @Override
                public void run() {
                    shutdownHooks.remove(task);
                }
            });
        }
    }
577171
@Override
    public void remove() {
        try {
            Runtime.getRuntime().removeShutdownHook(this);
        } catch (IllegalStateException ex) {
            LOGGER.trace("ignore as we are likely shutting down", ex);
        }
    }
316028
def dispose(self):
        """"""
        self._username = None
        self._password = None
        self._org_url = None
        self._proxy_url = None
        self._proxy_port = None
        self._token_url = None
        self._securityHandler = None
        self._valid = None
        self._message = None

        del self._username
        del self._password
        del self._org_url
        del self._proxy_url
        del self._proxy_port
        del self._token_url
        del self._securityHandler
        del self._valid
        del self._message
800041
private void removeShutdownHook() {
    if (added && !running) {
      boolean removed = Runtime.getRuntime().removeShutdownHook(
          destroyProcessThread);
      if (!removed) {
        log.error("Could not remove shutdown hook");
      }
      /*
       * start the hook thread, a unstarted thread may not be eligible for
       * garbage collection Cf.: http://developer.java.sun.com/developer/
       * bugParade/bugs/4533087.html
       */

      destroyProcessThread.setShouldDestroy(false);
      destroyProcessThread.start();
      // this should return quickly, since it basically is a NO-OP.
      try {
        destroyProcessThread.join(20000);
      }
      catch (InterruptedException ie) {
        // the thread didn't die in time
        // it should not kill any processes unexpectedly
      }
      destroyProcessThread = null;
      added = false;
    }
  }
1270243
public function __unsetHook()
    {
        return function ($next, $value, $args) {
            $key = $args->get('key');

            if ($this->hasMapping($key)) {
                return $this->forget($key);
            }

            return $next($value, $args);
        };
    }