public function clear() { $batch = \Aws\S3\BatchDelete::fromListObjects($this->client, ['Bucket' => $this->getBucket()]); $batch->delete(); return $this; }