diff options
Diffstat (limited to 'qvisqve/file_store.py')
-rw-r--r-- | qvisqve/file_store.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/qvisqve/file_store.py b/qvisqve/file_store.py index 3fd5186..b22f2e7 100644 --- a/qvisqve/file_store.py +++ b/qvisqve/file_store.py @@ -56,6 +56,11 @@ class FileStore: with open(filename, 'w') as f: yaml.safe_dump(resource, stream=f) + def delete(self, resource_type, resource_id): + filename = self._filename(resource_type, resource_id) + if os.path.exists(filename): + os.remove(filename) + class ResourceStoreError(Exception): |