---
title: "Retention and deleting"
description: "How long messages are kept, and how to remove them."
canonical_url: "https://docs.logstrace.dev/guides/teams/retention"
---
# Retention and deleting

> How long messages are kept, and how to remove them.

## Retention

In project **Settings**, **Keep messages for** sets how long messages are stored: forever (default), or 7, 15, 30, 90, 180 or 365 days.

- Older messages are deleted automatically every hour.
- Tables, column names, dashboards and keys stay.
- Each cleanup is recorded in the audit log.

## Delete messages now

Under **Delete messages** in project settings, pick **Older than** a date, **From table**, or both, then type the project address to confirm.

- Deletion is permanent.
- Admins and owners only, up to 10 deletions per hour.
- Recorded in the audit log.

<tip>

Logged something you shouldn't have, such as a secret? Delete those messages from their table here, then rotate the secret.

</tip>


## Sitemap

See the full [sitemap](https://docs.logstrace.dev/sitemap.md) for all pages.
