/** * * Delete a AuthIdsType from the backend * @param string $policyID id of the bucket * @throws Exception * @return bool */ public function deleteAuthBucket($policyId, $bucketId) { $method = "DELETE"; $url = E3_PROV_URL_POLICY . "/" . rawurlencode($policyId) . "/quotaRLBuckets/" . rawurlencode($bucketId); $restClient = new RestClient(); $reply = $restClient->makeCall($url, $method); if ($reply->getHTTPCode() === "200") { return true; } else { $xml = simplexml_load_string($reply->getPayload()); drupal_set_message((string) $xml->status, 'error'); return false; } }