delete webhook for wallet

@param string    $identifier         the wallet identifier for which to delete the webhook
@param string    $webhookIdentifier  the webhook identifier to delete
@return array
340617
public function deleteWalletWebhook($identifier, $webhookIdentifier) {
        $response = $this->blocktrailClient->delete("wallet/{$identifier}/webhook/{$webhookIdentifier}", null, null, RestClient::AUTH_HTTP_SIG);
        return self::jsonDecode($response->body(), true);
    }
67931
protected function deleteResource($identifier): int
    {
        try {
            $query = $this->getConnection()->createQueryBuilder();

            $query
                ->delete($this->getTableNameForWriting())
                ->where($this->getPrimaryKeyName() . '=' . $this->createTypedParameter($query, $identifier));

            $numberOfDeleted = $query->execute();
            assert(is_int($numberOfDeleted) === true);

            return $numberOfDeleted;
        } /** @noinspection PhpRedundantCatchClauseInspection */ catch (DBALException $exception) {
            $message = 'Resource deletion failed.';
            throw new RepositoryException($message, 0, $exception);
        }
    }
544905
public function remove($id, $webhookId)
    {
        return $this->delete($this->getPath($id).'/'.rawurlencode($webhookId));
    }
762056
public function getWalletBalance($identifier) {
        $response = $this->blocktrailClient->get("wallet/{$identifier}/balance", null, RestClient::AUTH_HTTP_SIG);
        return self::jsonDecode($response->body(), true);
    }
991291
public function delete($identity, $service)
    {
        $successCode = array(DataSift_ApiClient::HTTP_NO_CONTENT);

        return $this->_user->delete('account/identity/' . $identity . '/token/' . $service);
    }
333453
public static function icon($identifier, $icon) {
		$result=new HtmlButton($identifier);
		$result->asIcon($icon);
		return $result;
	}
527658
public function retrieveByToken($identifier, $token) {
        /** @var RecordInterface|Authenticatable $userRecord */
        if (!$this->isValidIdentifierValue($identifier)) {
            return null;
        }
        $userRecord = $this->createEmptyUserRecord();
        /** @var RecordInterface $user */
        $user = $userRecord->fromDb([
            $userRecord->getAuthIdentifierName() => $identifier,
            $userRecord->getRememberTokenName() => $token,
        ], [], $this->getRelationsToFetch());

        return $this->validateUser($user, null);
    }
303824
public function getWebhook($identifier) {
        $response = $this->blocktrailClient->get("webhook/".$identifier);
        return self::jsonDecode($response->body(), true);
    }
227447
public function retrieveByToken($identifier, $token) {
		$m = $this->modelName;
		return $m::findForAuthToken($identifier, $token);
	}
638359
public function stop($identifier)
    {
        if (isset($this->startTimes[$identifier])) {
            $elapsed_time = $this->getMicroTime() - $this->startTimes[$identifier];

            if (isset($this->results[$identifier])) {
                $this->results[$identifier] += $elapsed_time;
            } else {
                $this->results[$identifier] = $elapsed_time;
            }

            return $elapsed_time;
        }

        return null;
    }
407236
public function removeIdentifier($identifier)
    {
        if (isset($this->identifiers[$identifier])) {
            unset($this->identifiers[$identifier]);
        }

        return $this;
    }
1162114
public function retrieveByToken($identifier, $token)
    {
        $user = $this->getGenericUser(
            $this->conn->table($this->table)->find($identifier)
        );

        return $user && $user->getRememberToken() && hash_equals($user->getRememberToken(), $token)
                    ? $user : null;
    }
508872
private function _key($identifier) {
    	extract($identifier);
    	$arg_string = "";
    	return md5(serialize($class . $method . implode('~', $args)));
    }
763856
public function get_request_token_secret(array $identifiers) {

        if (empty($identifiers) || empty($identifiers['caller'])) {
            throw new coding_exception('Invalid call identification');
        }

        $cache = cache::make_from_params(cache_store::MODE_SESSION, 'core', 'flickrclient', $identifiers);

        return $cache->get('request_token_secret');
    }
670424
public function delete($identifiers)
    {
        $parents = func_get_args();

        $id = array_pop($parents);

        $entity = $parents ? $this->resource->singleByParent(end($parents), $id) : $this->resource->single($id);

        if ($this->failsSecurity($entity)) {
            return $this->responseDenied();
        }

        if (!$entity || $this->failsParentMatch($parents)) {
            return $this->responseNotFound();
        }

        $this->resource->delete($id);

        return $this->response(null, 204);
    }
1264844
public function remove($identifier)
    {
        if (!$this->has($identifier)) {
            return null;
        }

        $removedValue = $this->container[$identifier];

        unset($this->container[$identifier]);

        return $removedValue;
    }
791244
public function replaceWebhook($webhookId, array $data = [])
	{
		return $this->sendRequest(
			$this->createRequest('PUT', sprintf('webhooks/%d', $webhookId), [], $data)
		);
	}