Data retention

This page lists what Tienda removes by itself, and for how long it keeps things. It lists only what exists in the code. It is not a privacy statement, and it is not a complete list of the data Tienda holds.

What is removed automatically

DataKept forHow to change it
E-mail log, text and HTML of a mail90 days. Then the text is removed and the row stays, with recipients, subject, status and history.The operator setting EMAIL_LOG_BODY_DAYS.
E-mail log, the row itself400 days. Then the row is deleted.The operator setting EMAIL_LOG_ROW_DAYS.
E-mailed sign-in codeValid for ten minutes and for one successful use. A new code for the same address replaces the old one. After five wrong guesses it is destroyed.Fixed.
Shiloh account sign-in: records of provider sessions used for back-channel logoutRecords older than 45 days are removed when a new one is written.Fixed.

The e-mail log job runs once a day at 03:00 for all shops together. The body limit is never longer than the row limit. There is no setting per shop. See E-mail log.

Session tokens last 24 hours (API overview).

An MCP OAuth connection's access token lasts one day and its authorization code ten minutes. A refresh token has no fixed expiry: it is kept until the connection is disconnected under Settings > AI agents, or revoked. No job that removes expired token rows was found in the code (MCP overview).

What is kept until a person removes it

Orders, customers, products, stock movements, payments, webhook delivery logs, API key records and the rest are kept until someone deletes them in the back office or through the API. Some records cannot be deleted because other records depend on them; the back office says so when you try. A revoked API key stays in the list as revoked.

Not documented yet

  • How long a shop's data is kept after the shop is archived or ended.
  • Backups: how long they are kept and how a person's data is removed from them.
  • A way for a shop to delete or export all data about one customer in a single step. Individual records can be exported or deleted where the back office allows.
  • Retention of the webhook delivery log. No automatic removal was found in the code.

If you need a statement for your own records, ask the party that runs your Tienda.