https://dagster.io/ logo
#ask-community
Title
# ask-community
a

Alexey Zavalskiy

03/14/2023, 10:49 AM
Hi! I have local dagster deployment using docker and PostgreSQL as database for keeping run logs. Is it possible to remove run logs (or all info about runs) older than e.g. 3 months using api? Found in docs for dagster cli
dagster run wipe
and
dagster run delete
, but first removes all logs, as i understand, and second delete only one run by id (which is not ok, if i’d like to remove hundreds of runs).
y

yuhan

03/14/2023, 11:58 PM
we don’t have an api for this bulk action. i’d recommend using the latter or
DagsterInstance.delete_run(run_id)
but put them in a loop that iterates through the 100s run ids.
👍 1
3 Views