Remove a webhook
@link https://trello.com/docs/api/token/#delete-1-tokens-token-webhooks-idwebhook

@param string $id        the id of the token the webhook is attached to
@param string $webhookId id of the webhook to remove

@return array card info
544905
public function remove($id, $webhookId)
    {
        return $this->delete($this->getPath($id).'/'.rawurlencode($webhookId));
    }
984904
public function delete($id)
    {
        foreach ($this->_indices as $index) {
            $indexCount = $index->count();

            if ($indexCount > $id) {
                $index->delete($id);
                return;
            }

            $id -= $indexCount;
        }

        include_once 'Zend/Search/Lucene/Exception.php';
        throw new Zend_Search_Lucene_Exception('Document id is out of the range.');
    }
899543
public function delete($id, $params = [])
    {
        return $this->gateway->commit('delete', $this->gateway->buildUrlFromString('webhooks/'.$id));
    }
533856
public function deletePipeline(string $id)
    {
        $endpoint = new Delete();
        $endpoint->setID($id);

        return $this->requestEndpoint($endpoint);
    }
918271
public function remove($id)
    {
        $boolFast = $this->_fastBackend->remove($id);
        $boolSlow = $this->_slowBackend->remove($id);
        return $boolFast && $boolSlow;
    }
1059665
public function deleteById($id = '')
    {
        $node = $this->mainNode->getById($id);

        if (empty($node)) {
            true;
        }

        return $node->delete();
    }
557584
public function delete(string $id, array $headers = [])
    {
        $url = $this->url('subscriptions/%s/delete', $id);

        return $this->post($url, [], $headers);
    }
816942
public function destroy($id)
	{
		$level = "danger";
		$message = " You are not permitted to destroy permissions.";

		if ( Shinobi::can ( config('watchtower.acl.permission.destroy', false) ) ) {
			Permission::destroy($id);
			$level = "warning";
			$message = "<i class='fa fa-check-square-o fa-1x'></i> Success! Permission deleted.";
		}

		return redirect()->route( config('watchtower.route.as') .'permission.index')
				->with( ['flash' => ['message' => $message, 'level' =>  $level] ] );
	}
9831
public function deleteCard($cardId)
    {
        return $this->auth(function () use ($cardId) {
            $data = json_encode(['card_id' => $cardId], JSON_UNESCAPED_UNICODE);
            $result = $this->http->postJson($this->baseUrl . 'card/delete?access_token=' . $this->accessToken, $data);

            return $result;
        });
    }
462081
public function destroy($id)
    {
     	$package = Package::findOrfail($id);
     	$package->delete();
        return URL::to('package');
    }
748947
private function deleteTag($id)
    {
        $tags = Tag::find($id);
        if(Tag::hasPosts($id)) {
            return $this->response("You can't delete this Tag. There are posts associated with it.", 403);
        }
        if ($tags->delete()) {
            return true;
        }
        return false;
    }
1217825
private function removeFromHashmapById($id)
    {
        try {
            foreach ($this->_hashmap as $tag => $vars) {
                foreach (array_keys($vars) as $key) {
                    if ($key == $id) {
                        unset($this->_hashmap[$tag][$key]);

                        return $this->saveHashmap();
                    }
                }
            }
        } catch (\Exception $e) {
            $this->log('warning', \sprintf('Unable to remove id from hashmap %s : %s', $id, $e->getMessage()));

            return false;
        }

        return false;
    }
638064
public function remove($id)
    {
        if (true === $result = @unlink($this->getCacheFile($id))) {
            $this->log('debug', sprintf('Cache data removed for id `%s`.', $id));
        }

        return $result;
    }
1319203
public function get(int $id): Webhook
    {
        return $this->loadResource(
            Webhook::class,
            sprintf(self::GET_WEBHOOK_URI, $id)
        );
    }
383424
public static MozuUrl deleteUrl(String cardId)
	{
		UrlFormatter formatter = new UrlFormatter("/payments/commerce/payments/cards/{cardId}");
		formatter.formatUrl("cardId", cardId);
		return new MozuUrl(formatter.getResourceUrl(), MozuUrl.UrlLocation.PCI_POD) ;
	}
443768
public function delete($id)
    {
        $entry = WinkAuthor::findOrFail($id);

        if ($entry->posts()->count()) {
            return response()->json(['message' => 'Please remove the author\'s posts first.'], 402);
        }

        if ($entry->id == auth('wink')->user()->id) {
            return response()->json(['message' => 'You cannot delete yourself.'], 402);
        }

        $entry->delete();
    }
1031649
public static function delCallbackByID($hook, $id) {
    if (!isset(Hook::$hooks[$hook][$id])) {
      return 2;
    }
    unset(Hook::$hooks[$hook][$id]);
    return 1;
  }