diff --git a/gns3server/db/repositories/pools.py b/gns3server/db/repositories/pools.py index 9cf11bf3e..e32c94fbf 100644 --- a/gns3server/db/repositories/pools.py +++ b/gns3server/db/repositories/pools.py @@ -203,6 +203,9 @@ async def remove_resource_from_pool( resource_pool_db.resources.remove(resource) await self._db_session.commit() await self._db_session.refresh(resource_pool_db) + + await self.delete_resource(resource.resource_id) + return resource_pool_db async def get_pool_resources(self, resource_pool_id: UUID) -> List[models.Resource]: