Scalr\Service\Aws\S3\DataType\BucketData::deleteWebsite PHP Method

deleteWebsite() public method

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 ( ) : boolean
return boolean Returns true on success or throws an exception.
    public function deleteWebsite()
    {
        $this->throwExceptionIfNotInitialized();
        return $this->getS3()->bucket->deleteWebsite($this->bucketName);
    }