Data Retention
Control how long execution logs, deleted resources, and copilot data are kept before permanent deletion
Data Retention lets workspace admins on Enterprise plans configure how long three categories of data are kept before they are permanently deleted. Each workspace in your organization can have its own independent configuration.
Setup
Go to Settings → Enterprise → Data Retention in your workspace.
You will see three independent settings, each with the same set of options: 1 day, 3 days, 7 days, 14 days, 30 days, 60 days, 90 days, 180 days, 1 year, 5 years, or Forever.
Setting a period to Forever means that category of data is never automatically deleted.
Settings
Log retention
Controls how long workflow execution logs are kept.
When the retention period expires, execution log records are permanently deleted, along with any files associated with those executions stored in cloud storage.
Soft deletion cleanup
Controls how long soft-deleted resources remain recoverable before permanent removal.
When you delete a workflow, folder, knowledge base, table, or file, it is initially soft-deleted and can be recovered from Recently Deleted. Once the soft deletion cleanup period expires, those resources are permanently removed and cannot be recovered.
Resources covered:
- Workflows
- Workflow folders
- Knowledge bases
- Tables
- Files
- MCP server configurations
- Agent memory
Task cleanup
Controls how long Mothership data is kept, including:
- Copilot chats and run history
- Run checkpoints and async tool calls
- Inbox tasks (Sim Mailer)
Each setting is independent. You can configure a short log retention period alongside a long soft deletion cleanup period, or any combination that fits your compliance requirements.
Per-workspace configuration
Retention is configured at the workspace level, not organization-wide. Each workspace in your organization can have a different configuration. Changes to one workspace's settings do not affect other workspaces.
Defaults
By default, all three settings are unconfigured — no data is automatically deleted in any category until you configure it. Setting a period to Forever has the same effect as leaving it unconfigured, but makes the intent explicit and allows you to change it later without saving from scratch.
Common Questions
Self-hosted setup
Environment variables
NEXT_PUBLIC_DATA_RETENTION_ENABLED=trueOnce enabled, data retention settings are configurable through Settings → Enterprise → Data Retention the same way as Sim Cloud.