Skip to content

Commit

Permalink
core: version-chooser: Add force to delete images
Browse files Browse the repository at this point in the history
  • Loading branch information
JoaoMario109 authored and patrickelectric committed Mar 25, 2024
1 parent c4332ae commit b834032
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/services/versionchooser/utils/chooser.py
Expand Up @@ -287,7 +287,7 @@ async def delete_version(self, image: str, tag: str) -> web.StreamResponse:
# actually attempt to delete it
logger.info(f"Deleting image {image}:{tag}...")
try:
await self.client.images.delete(full_name, force=False, noprune=False)
await self.client.images.delete(full_name, force=True, noprune=False)
logger.info("Image deleted successfully")
return web.Response(status=200)
except Exception as e:
Expand Down

0 comments on commit b834032

Please sign in to comment.