PostHog / posthog

🦔 PostHog provides open-source product analytics, session recording, feature flagging and A/B testing that you can self-host.
https://posthog.com
Other
19.63k stars 1.15k forks source link

Event retention // delete events after a certain timeframe #17031

Open MarconLP opened 11 months ago

MarconLP commented 11 months ago

Is your feature request related to a problem?

Some customers would like to delete their events after a certain amount of time (e.g: 2 years)

Describe the solution you'd like

Add the option to delete events after a certain timeframe

Describe alternatives you've considered

Additional context

related tickets:

Thank you for your feature request – we love each and every one!

nosovk commented 7 months ago

It would be nice to have that feature. Actually we have to keep 1 year of data now, but we actually don't need it. It would be nice to store last month and all. Actually we could resetap posthog instance every month, but it's a kreepy solution comparing to regulated retention time.

johnbizokk commented 7 months ago

Hello! Is it true that the self-hosted version has no retention settings regarding the events? I have found some settings related to the recording retention - RECORDINGS_TTL_WEEKS and RECORDINGS_PERFORMANCE_EVENTS_TTL_WEEKS, but there are no settings for the events. If so, it would be nice to have dedicated settings for event retention for the micro-installation (16 GB SD card), such as a Raspberry Pi.

o-m-chumak commented 7 months ago

It will be great to have the option to automatically delete events after a certain timeframe. This feature would provide users with more control over data retention and align with various privacy and data management requirements. Looking forward to seeing this enhancement in future releases.

MarconLP commented 6 months ago

+1 https://posthoghelp.zendesk.com/agent/tickets/8811

MarconLP commented 5 months ago

+1 https://posthoghelp.zendesk.com/agent/tickets/9651

JonathanHallen1991 commented 4 months ago

Hi, We need to have the option to delete events older than 3 years. Is this feature being worked on? If not, is there any way we can delete data like events after a certain timeline?

tricky42 commented 3 months ago

Hi,

we also need a feature for Posthog EU to define the data retention of events. It would be great to get official feedback on this topic.

lezgin-bakircioglu-qred commented 3 months ago

Hi,

we also need a feature for Posthog EU to define the data retention of events. It would be great to get official feedback on this topic.

Same here