Toggle navigation
Hot Examples
EN
EN
RU
DE
FR
ES
PT
IT
JP
ZH
KO
PHP
PHP
C#
Java
Go
C++
Python
JS
TS
Search
Home
Webiny
Component
Amazon
S3
clearBucket
Webiny\Component\Amazon\S3::clearBucket PHP Method
S3 Class Documentation
Show file
Open project: Webiny/Framework
clearBucket()
public
method
Helper used to clear the contents of a bucket. Use the {@see ClearBucket} object directly for more advanced options and control.
public
clearBucket
(
string
$bucket
) :
integer
$bucket
string
Name of the bucket to clear.
return
integer
Returns the number of deleted keys
public function clearBucket($bucket) { return $this->instance->clearBucket($bucket); }
S3
__construct
clearBucket
copyObject
createBucket
deleteBucket
deleteMatchingObjects
deleteObject
deleteObjects
doesBucketExist
doesObjectExist
downloadBucket
getBucketAcl
getBucketLocation
getBucketPolicy
getListBucketsIterator
getListObjectsIterator
getObject
getObjectAcl
getObjectUrl
listBuckets
listObjects
multipartUpload
putBucketAcl
putObject
putObjectAcl
restoreObject
uploadDirectory