public function deleteBucketSubresource($bucketName, $subresource)
{
$result = false;
$options = array('_subdomain' => (string) $bucketName);
$allowed = S3QueryClient::getAllowedSubResources();
if (!in_array($subresource, $allowed)) {
throw new \InvalidArgumentException(sprintf('Invalid subresource "%s" for the bucket. Allowed values are "%s"', $subresource, join('", "', $allowed)));
}
$response = $this->client->call('DELETE', $options, '/?' . $subresource);
if ($response->getError() === false) {
$result = true;
}
return $result;
}