Scalr\Service\Aws\S3\Handler\BucketHandler::deleteWebsite PHP Метод

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

This operation removes the website configuration for a bucket. Amazon S3 returns a 200 OK response upon successfully deleting a website configuration on the specified bucket. You will get a 200 OK response if the website configuration you are trying to delete does not exist on the bucket. Amazon S3 returns a 404 response if the bucket specified in the request does not exist.
public deleteWebsite ( BucketData | string $bucketName ) : boolean
$bucketName Scalr\Service\Aws\S3\DataType\BucketData | string A bucket name.
Результат boolean Returns true on success or throws an exception.
    public function deleteWebsite($bucketName)
    {
        if ($bucketName instanceof BucketData) {
            $bucketName = $bucketName->bucketName;
        }
        return $this->getS3()->getApiHandler()->deleteBucketWebsite($bucketName);
    }