> For clean Markdown of any page, append .md to the page URL.
> For a complete documentation index, see https://docs.ovalbee.com/llms.txt.
> For AI client integration (Claude Code, Cursor, etc.), connect to the MCP server at https://docs.ovalbee.com/_mcp/server.

# Storage and trash

Data in OvalBee lives as long as something refers to it. Unused data moves to the **trash** automatically and is permanently deleted after the retention period. You can restore anything while it is in the trash.

## The trash

Deleting puts things in the trash: a flow, a dataset, a model, or data the nightly cleanup found unused. Deleting a flow also puts the data only that flow used in the trash with it, and restoring the flow brings that data back.

What is in the trash still counts toward your storage and can be restored. **Review and empty** in the Trash section on the Home page, for members who manage the workspace, deletes everything in it for good and frees its space at once. Before you empty it, the trash shows what it holds, how much space each item frees, when something last used it, and which live flows still use it and would break.

Items left in the trash for 30 days are permanently deleted automatically.

## Cleanup of unused data

Every night, data that nothing has referred to for 30 days goes to the trash. Data is **referenced** while one of these refers to it:

* a flow that is not deleted, through its nodes or its saved versions,
* a workspace flow template,
* a deployment,
* a model version that is itself in use, through the data it was trained and evaluated on.

An asset stays while a dataset version holds it. Typical unused data is the output of earlier runs, old versions of datasets that a scheduled import grows, models retrained since, and files a failed upload left behind.

When cleanup first starts tracking a workspace, it waits 30 days before moving anything to the trash. This protects data that was in use before tracking began.

### Version by version

Datasets and models are kept version by version, not as a whole. A node that follows *@latest* keeps whichever version is the newest today. So an older version stays for 30 days after a newer one replaced it, and longer only if something refers to that version by name.

A model version with an [alias](/concepts/models#latest-and-aliases) is never moved to the trash. Give an alias to weights you want to keep but do not use yet.

### Training checkpoints

A training run or a live training session that saves a newer checkpoint drops the one it replaced from the model. A checkpoint file that no model lists any more is deleted the next night, without going through the trash: nothing can use or restore it.

## What counts toward storage

Your storage counts every file in OvalBee's storage for the workspace, the trash included. That also covers files that never became data: what a failed run left behind, or what was written straight through the S3 API. Such a file that nothing has written for 30 days goes to the trash as *files found in storage*, where you can delete or restore it like anything else. Restoring such a file adds it to your assets.

Files in **your own buckets**, outside OvalBee's storage, are never counted, moved or deleted.

## Storage limits

A plan can limit the workspace's storage. New data that would take the workspace over the limit is refused, whether it comes from an upload, a node, **Add to registry** or a write through the S3 API. Because the trash still counts, emptying it is the quickest way to get back under the limit. Files in your own buckets do not count toward it.

## Changing the periods

The 30-day periods are instance settings, so a self-hosted installation can change them. See [Platform configuration](/administration/platform-configuration).

## Related pages

* [Datasets and versions](/concepts/datasets) — what a dataset version is.
* [Models](/concepts/models) — model versions, `@latest` and aliases.
* [Flows](/concepts/flows) — deleting and restoring a flow.