Webiny\Component\Amazon\Bridge\S3\S3::clearBucket PHP 메소드

clearBucket() 공개 메소드

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.
리턴 integer Returns the number of deleted keys
    public function clearBucket($bucket)
    {
        return $this->instance->clearBucket($bucket);
    }

Usage Example

예제 #1
0
파일: S3.php 프로젝트: Webiny/Framework
 /**
  * Helper used to clear the contents of a bucket. Use the {@see ClearBucket} object directly
  * for more advanced options and control.
  *
  * @param string $bucket Name of the bucket to clear.
  *
  * @return int Returns the number of deleted keys
  */
 public function clearBucket($bucket)
 {
     return $this->instance->clearBucket($bucket);
 }