https://kedro.org/ logo
#questions
Title
# questions
j

Jan

02/21/2023, 10:26 AM
Hi! Did anyone yet create a script / function to delete old experiments systematically? If I were to create one to delete the old folders, how can I remove them from the session_store.db (sqlite)?
t

Tynan

02/21/2023, 10:28 AM
For sqlite, this is the query to remove a specific run:
Copy code
DELETE from runs WHERE id = "YOUR TIMESTAMP HERE";
You can also do something like "delete all runs before a date:"
Copy code
DELETE from runs WHERE id < "YOUR TIMESTAMP HERE";
j

Jan

02/21/2023, 10:29 AM
Nice! Thanks for the hint :)
t

Tynan

02/21/2023, 10:30 AM
You're welcome!