How long are source event logs kept for? Could I set it up so that they're deleted daily?

This topic was automatically generated from Slack. You can find the original thread here.

Matthew Clemente : How long are source event logs kept for? Could I set it up so that they’re deleted daily?

Matthew Clemente : I suppose it would be possible to just run a scheduled workflow to delete source events?

Dylan Sather (Pipedream) : yes, you could definitely run a deletion job using https://docs.pipedream.com/api/rest/#delete-source-events . I’m confirming the expiry right now

Matthew Clemente : awesome!

Matthew Clemente : Any example workflows using the pipedream api?

Dylan Sather (Pipedream) : by default an active source will retain its logs forever, unless manually deleted. Note that events and logs for event sources are limited to only the last 100 events (older events will expire as soon as the 101st arrives). Non-active source events / logs will be deleted after one year.

Dylan Sather (Pipedream) : yes, let me share a workflow

Dylan Sather (Pipedream) : Pipedream API example - Pipedream

Dylan Sather (Pipedream) : see GitHub - axios/axios: Promise based HTTP client for the browser and node.js for all the options you can pass axios

Matthew Clemente : Thanks so much, as always, for the amazingly fast and helpful response!