Example #1
0
 /**
  * Delete collection.
  *
  * @param  string $name
  * @param  array  $options
  * @return boolean
  */
 public function deleteCollection($name, $options = null)
 {
     try {
         $this->_storageClient->deleteTable($name);
     } catch (WindowsAzureException\ExceptionInterface $e) {
         if (strpos($e->getMessage(), "does not exist") === false) {
             throw new Exception\RuntimeException('Error on collection deletion: ' . $e->getMessage(), $e->getCode(), $e);
         }
     }
     return true;
 }