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/).