/** * remove container from url * @param type $dir * @return boolean */ public function deleteContainer($url) { try { $dir = $this->getContainer($url); } catch (Exception $ex) { echo $ex->getMessage(); } try { return parent::removeContainer($dir); } catch (ServiceException $e) { // Handle exception based on error codes and messages. // Error codes and messages are here: // http://msdn.microsoft.com/it-it/library/windowsazure/dd179439.aspx $code = $e->getCode(); $error_message = $e->getMessage(); echo $code . ": " . $error_message . "<br />"; return false; } }
/** * delete container * @param string $dir the container * @return boolean */ public function rmdir($dir) { return parent::removeContainer($dir); }