Permalink
Browse files

刪除 Container

  • Loading branch information...
1 parent ffd04ac commit 9e49ce014487beb0b8df96e7e92019103c38eeb6 Sam.IO.Hsiao committed Aug 14, 2016
Showing with 16 additions and 0 deletions.
  1. +16 −0 app/Services/AzureBlobService.php
@@ -123,4 +123,20 @@ public function deleteBlob(string $containerName, string $blobName) : bool
return true;
}
+ /**
+ * 刪除 Container
+ * @param string $containerName
+ * @return bool
+ */
+ public function deleteContainer(string $containerName) : bool
+ {
+ try {
+ $this->blobProxy->deleteContainer($containerName);
+ } catch (ServiceException $exception) {
+ echo $exception->getCode() . ':' . $exception->getMessage();
+ return false;
+ }
+
+ return true;
+ }
}

0 comments on commit 9e49ce0

Please sign in to comment.