summaryrefslogtreecommitdiffstats
path: root/api/database/v2/handlers.py
diff options
context:
space:
mode:
Diffstat (limited to 'api/database/v2/handlers.py')
-rw-r--r--api/database/v2/handlers.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/api/database/v2/handlers.py b/api/database/v2/handlers.py
index 1bc32bf0e..e4f1dd668 100644
--- a/api/database/v2/handlers.py
+++ b/api/database/v2/handlers.py
@@ -87,6 +87,11 @@ class V2ImageHandler(object):
raise ValueError
return image
+ def delete_by_uuid(self, uuid):
+ image = self.get_by_uuid(uuid)
+ db_session.delete(image)
+ db_session.commit()
+
class V2PodHandler(object):