Permalink
Browse files

added Object.delete

  • Loading branch information...
1 parent 356781b commit 4712b33d79ab7b2254293c0874ba3455a5181cd9 @brosner brosner committed Feb 25, 2013
Showing with 6 additions and 0 deletions.
  1. +6 −0 eldrax/storage.py
View
@@ -117,3 +117,9 @@ def attrs(self):
else:
response.raise_for_status()
return ret
+
+ def delete(self):
+ path = "{}/{}".format(self.container.name, self.name)
+ response = requests.delete(**self.storage._request_kwargs(path))
+ if not response.ok and response.status_code != requests.codes.not_found:
+ reponse.raise_for_status()

0 comments on commit 4712b33

Please sign in to comment.