public function flushBucketCommand($bucket)
    {
        try {
            $s3Client = new S3Client($this->s3DefaultProfile);
            $batchDelete = BatchDelete::fromListObjects($s3Client, ['Bucket' => $bucket]);
            $promise = $batchDelete->promise();
        } catch (\Exception $e) {
            $this->outputLine($e->getMessage());
            $this->quit(1);
            exit;
        }
        $promise->wait();
        $this->outputLine('Successfully flushed bucket %s.', array($bucket));
    }