/** * delete a blob from the url * @param type $url * @return boolean */ public function delete($url) { try { $dir = $this->getContainer($url); $file = $this->getBlobName($url); } catch (Exception $ex) { echo $ex->getMessage(); } try { return parent::deleteBlob($dir, $file); } 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; } }
/** * Deletes a blob * @param string $dir the container * @param type $file is the blob * @return boolean */ public function unlink($dir, $file = '') { return parent::deleteBlob($dir, $file); }