(self)
| 256 | os.remove(fn) |
| 257 | |
| 258 | def clear(self): |
| 259 | for fn in os.listdir(self.location): |
| 260 | if os.path.isdir(fn): |
| 261 | continue |
| 262 | if fn.startswith(self.fnprefix): |
| 263 | log.debug('deleted: %s', fn) |
| 264 | os.remove(os.path.join(self.location, fn)) |
| 265 | |
| 266 | def purge(self, id): |
| 267 | fn = self.__fn(id) |