ETLMCPData Conveyance Works
Log in Start free
Docs

What etlmcp deletes on its own: exports, sessions and OAuth records

Which records a daily etlmcp job purges for every organization, from CSV exports and sign-in sessions to OAuth codes, grants and clients.

etlmcp runs a housekeeping job once a day that deletes expired records for every organization. It removes CSV export files and their records once they pass a fixed retention period, stray export files that no record points to, expired sign-in sessions, spent or expired email links, old failed-login entries, finished platform connect attempts, and OAuth codes, grants and clients that can no longer be used. Each period is set in the code, not per account, so you cannot change it. Your synced marketing figures are not part of this job: they follow your plan's history window.

Scope

Almost everything etlmcp does is scoped to one organization. The purge is a deliberate exception, marked as such in the code, so that each retention rule applies to every organization equally. It is a scheduled background task: no user or API key can start it or turn it off.

CSV exports

Each export record carries the time it was created, just after its file was written. Once that age passes the export retention period, the job deletes the file from storage first and then the record. If storage fails to delete the file, the record stays and the next day's run tries again, so a record is never removed while its file may still exist. A file that is already missing counts as deleted.

A second pass deletes stored files that no export record names. It only considers files older than a short safety margin, so a file a running sync is writing is left alone. On cloud storage it only judges files whose path belongs to an organization in this installation's own database, in case a bucket is shared. A failure in one storage location does not stop the sweep of the other.

After the purge, an old download address answers not found. Export download links covers how to keep a lasting copy.

Sign-in and account records

Record What it holds When the job deletes it
Sessions A hash of your browser session token Once the session has expired. Signing out deletes yours at once.
Email tokens Hashes of verification, password-reset and invitation links As soon as the link is used, or once it has expired unused
Login attempts The email address and IP address of a failed sign-in After a short period, once they no longer count toward sign-in throttling
Connect states The temporary state of a connection you start with a platform A fixed time after the attempt was used or expired
API rate windows Per-credential request counts Once the counting window is well over

OAuth records for MCP clients

The same job cleans the tables behind MCP OAuth connections:

  • Tokens are deleted when they expire. A refresh token that was swapped for a new pair stays until its own expiry, so a later reuse is still caught.
  • Authorization codes are kept for a while after they expire. A code presented a second time revokes its whole grant, and the kept code is what lets etlmcp recognize the replay.
  • Grants whose code was never redeemed are deleted. Used grants with no unrevoked token left are marked revoked, and revoked grants are deleted after a longer holding period.
  • Clients that no grant names are removed. A client that registered itself through dynamic registration is kept longer than one known through a metadata document, because the second kind is fetched again when it next connects, while the first must register again.

What the job does not touch

A separate daily job trims stored daily rows to your history window. What you can remove yourself is covered in deleting data. Neither job reaches data already delivered to your own database or webhook receiver.

Related