delete a repo object Note: when doing calls with wait=False this gets async and caller must deal with async results / exceptions later.
(self, id, wait=True)
| 500 | self.store.store(key, data) |
| 501 | |
| 502 | def delete(self, id, wait=True): |
| 503 | """delete a repo object |
| 504 | |
| 505 | Note: when doing calls with wait=False this gets async and caller must |
| 506 | deal with async results / exceptions later. |
| 507 | """ |
| 508 | self._lock_refresh() |
| 509 | key = "data/" + bin_to_hex(id) |
| 510 | try: |
| 511 | self.store.delete(key) |
| 512 | except StoreObjectNotFound: |
| 513 | raise self.ObjectNotFound(id, str(self._location)) from None |
| 514 | |
| 515 | def async_response(self, wait=True): |
| 516 | """Get one async result (only applies to remote repositories). |
no test coverage detected