mirror of
https://github.com/home-assistant/home-assistant.io.git
synced 2025-07-18 23:06:58 +00:00
add advice to delete data via recorder services (#20445)
Co-authored-by: Franck Nijhof <frenck@frenck.nl>
This commit is contained in:
parent
4eca1f70e7
commit
1b24d15c55
@ -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/).
|
||||
|
Loading…
x
Reference in New Issue
Block a user