diff --git a/controllers/sensors.go b/controllers/sensors.go index 19bd2c8..1fc0925 100644 --- a/controllers/sensors.go +++ b/controllers/sensors.go @@ -103,6 +103,7 @@ func (c *SensorsController) PostCompteur() { } else if isDelete != "" { cpt := teleinfo.GetCompteurByAdresse(adresse) teleinfo.DeleteCompteur(cpt.Id) + teleinfo.DeleteDataCompteur(cpt.AdresseCompteur) c.Redirect("/sensors", 302) } else { c.Redirect("/404", 404)