Skip to main content
Question

What is the easiest way people have found to purge data

  • May 6, 2022
  • 2 replies
  • 10 views

I want to keep a rolling 2 years of data in Celonis. So each month I would ideally like to delete the 1st month in Celonis and add the new month.

 

I do not want to reload the data each month - full load (as that would take too long for two years of data) and of course a delta load only adds change to the existing data.

2 replies

gabriel.okaba11
Celonaut
Forum|alt.badge.img+2

You can create a SQL Transformation to delete older data

 

It can be as simple as below (example from SAP tables)

DELETE FROM VBAK WHERE DATEDIFF(MM, ERDAT, CURRENT_DATE()) > 24;

DELETE FROM VBAP WHERE DATEDIFF(MM, ERDAT, CURRENT_DATE()) > 24;


  • Author
  • Level 1
  • May 9, 2022

Thank you Gabriel - that does indeed look very simple. So that would mean 1 delete statement per table. Thank you.