Skip to content

Howto refresh/clean out the database periodically #517

Answered by sruffell
KingJulianS asked this question in Q&A
Discussion options

You must be logged in to vote

Hello. Currently, the easiest way to delete old data is to remove data files from the database.

The output of timew diag will show you where timewarrior currently has the database:

$ timew diag | grep Database:
       Database: xxx

In a directory named data under the database directory is where timewarrior currently stores interval data. There are the YYYY-mm.data files that store intervals, tags.data which tracks known tags to report if a tag is new ,and undo.data to support the timew undo operation.

If tags.data is missing, timew will recreate it from any existing YYYY-mm.data files, and the undo is only needed to support timew undo. So you can delete any older YYYY-mm.data files you wa…

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@KingJulianS
Comment options

@KingJulianS
Comment options

Answer selected by KingJulianS
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants