From 1b24d15c552281374ccc78442e64de7c47c7e367 Mon Sep 17 00:00:00 2001 From: copykatze <37208928+copykatze@users.noreply.github.com> Date: Mon, 29 Nov 2021 18:47:16 +0100 Subject: [PATCH] add advice to delete data via recorder services (#20445) Co-authored-by: Franck Nijhof --- source/_docs/backend/database.markdown | 12 +----------- 1 file changed, 1 insertion(+), 11 deletions(-) diff --git a/source/_docs/backend/database.markdown b/source/_docs/backend/database.markdown index eb329f51cc3..5de5e083790 100644 --- a/source/_docs/backend/database.markdown +++ b/source/_docs/backend/database.markdown @@ -125,16 +125,6 @@ group.all_switches 8018 ### Delete -If you don't want to keep certain entities, you can delete them permanently: - -```bash -sqlite> DELETE FROM states WHERE entity_id="sensor.cpu"; -``` - -The `VACUUM` command cleans your database. - -```bash -sqlite> VACUUM; -``` +If you don't want to keep certain entities, you can delete them permanently by using the [services provided by the recorder](/integrations/recorder/#service-purge_entities). For a more interactive way of working with the database, check the [Data Science Portal](https://data.home-assistant.io/).