Skip to content

Commit cf25959

Browse files
KarimGeigerfabaff
authored andcommitted
Add note for purge service to explain behaviour (home-assistant#7874)
I recently thought my purge service did not work since there still were some entries in my database having a younger date than specified by the purge. It took me quite a while to find an answer as to why that is, so I thought adding a note to the documentation wouldn't hurt. Source: https://community.home-assistant.io/t/recorder-does-not-purge/70077/2
1 parent 6e3a0cc commit cf25959

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

source/_components/recorder.markdown

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -131,6 +131,10 @@ Call the service `recorder.purge` to start a purge task which deletes events and
131131
| `keep_days` | yes | The number of history days to keep in recorder database (defaults to the component `purge_keep_days` configuration)
132132
| `repack` | yes | Rewrite the entire database, possibly saving some disk space. Only supported for SQLite and requires at least as much disk space free as the database currently uses.
133133

134+
<p class='note'>
135+
Purging does not necessarily remove all entries before a given date. For example, to be able to recover after startup, the last known state for each entry is never purged. This is true even if the entry is already removed from your configuration.
136+
</p>
137+
134138
## {% linkable_title Custom database engines %}
135139

136140
| Database engine | `db_url` |

0 commit comments

Comments
 (0)