public function deleteDirectory($path) { $mediaRelativePath = $this->storageHelper->getMediaRelativePath($path); $prefix = rtrim($mediaRelativePath, '/') . '/'; $this->client->deleteMatchingObjects($this->getBucket(), $prefix); return $this; }