Scalr\Service\Aws\S3\DataType\BucketData::deletePolicy PHP Метод

deletePolicy() публичный Метод

This implementation of the DELETE operation uses the policy subresource to delete the policy on a specified bucket. To use the operation, you must have DeletePolicy permissions on the specified bucket and be the bucket owner.
public deletePolicy ( ) : boolean
Результат boolean Returns true on success or throws an exception.
    public function deletePolicy()
    {
        $this->throwExceptionIfNotInitialized();
        return $this->getS3()->bucket->deletePolicy($this->bucketName);
    }