add advice to delete data via recorder services (#20445)

Co-authored-by: Franck Nijhof <frenck@frenck.nl>
This commit is contained in:
copykatze 2021-11-29 18:47:16 +01:00 committed by GitHub
parent 4eca1f70e7
commit 1b24d15c55
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

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