> ## Documentation Index
> Fetch the complete documentation index at: https://docs.zerotwo.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# Retention and Storage

> How ZeroTwo stores your uploaded files, how long they persist, and how to delete or export them.

Files uploaded to ZeroTwo are stored securely in your personal account storage. This page explains where files live, how long they persist, and how to manage, delete, or export them.

## Where Files Are Stored

ZeroTwo uses **per-account Supabase storage** for all uploaded files. Each ZeroTwo account has its own isolated storage bucket — your files are never mixed with another user's files.

| Property              | Details                                                     |
| --------------------- | ----------------------------------------------------------- |
| Storage provider      | Supabase managed object storage                             |
| Encryption at rest    | AES-256                                                     |
| Encryption in transit | TLS                                                         |
| Isolation             | Per-account — no cross-user access                          |
| Model training        | ZeroTwo does not use your uploaded files to train AI models |

## How Long Files Are Kept

Files are **retained indefinitely** until you explicitly delete them or close your account. There is no automatic expiration, no rolling deletion after a period of inactivity, and no storage cap that triggers deletion.

| Event                      | Effect on Files                                                                 |
| -------------------------- | ------------------------------------------------------------------------------- |
| Session ends / you log out | Files remain in storage                                                         |
| Chat is deleted            | File is retained in Files Library; only the chat reference is removed           |
| Project is deleted         | Files are **not** automatically deleted; they remain in your main Files Library |
| Account closed             | All files are permanently deleted as part of account closure                    |

## Project File Scoping

Files uploaded within a **project** are scoped to that project:

* Project files appear in the project's Files tab, separate from your general uploads
* Project files also appear in the main `/files` library, tagged with the project name
* Deleting a project does **not** automatically delete its files — delete them from `/files` if needed

<Info>
  File privacy is maintained at both the account and project level. Even within a shared workspace, files are associated with the uploading account.
</Info>

## Viewing Your Storage Usage

A storage usage summary may be visible in **Settings → Account**. You can also review your files manually in the [Files Library](/tools/files/files-library) at `/files` — the library shows each file's size, so you can assess usage directly.

## Deleting Files

<Warning>
  File deletion is **permanent and cannot be undone**. ZeroTwo does not retain backups of user-deleted files. Download any files you want to keep before deleting.
</Warning>

### Delete a Single File

<Steps>
  <Step title="Open the Files Library">
    Navigate to `/files` or click **Files** in the topbar.
  </Step>

  <Step title="Find the file">
    Use the search bar or scroll to locate the file you want to delete.
  </Step>

  <Step title="Hover over the file">
    Move your cursor over the file entry — action icons appear.
  </Step>

  <Step title="Click the delete icon">
    Click the trash can icon. A confirmation dialog appears.
  </Step>

  <Step title="Confirm deletion">
    Click **Delete** in the confirmation dialog. The file is permanently removed from storage.
  </Step>
</Steps>

### Delete All Files at Once

To clear all files from your account at once:

1. Go to **Settings → Data Controls**.
2. Find the **Clear Files** option.
3. Click **Clear All Files** and confirm.

This removes every file from your account permanently.

### Delete Project Files

To delete files scoped to a specific project:

1. Open the project from the sidebar.
2. Navigate to the project's **Files** tab.
3. Hover over a file → click the delete icon → confirm.

Project files also appear in the main `/files` library tagged with the project name, where you can delete them the same way.

## Effect on Chat History

Deleting a file affects future access but **does not erase existing AI analysis** from your chat history:

* Chat messages referencing the deleted file still show ZeroTwo's responses and analysis
* The raw file attachment link will no longer resolve — you cannot re-download the file from the chat
* The text content of all AI responses remains fully intact and accessible

Think of it as removing the source file while keeping the work already done with it.

## Downloading Files

Before deleting, or any time you want a local copy, download files from the Files Library:

1. Navigate to `/files`.
2. Hover over the file.
3. Click the **download icon** that appears.
4. The file downloads to your device's default downloads folder.

The downloaded file is identical to your original upload — ZeroTwo does not modify or re-encode uploaded files.

## Data Export

To export all your account data including file metadata:

1. Go to **Settings → Data Controls → Export Data**.
2. A ZIP archive is generated containing your chat history, account data, and file metadata.
3. You will be notified when the export is ready to download.

<Note>
  The data export includes file **metadata** (filenames, upload dates, sizes) but not the file binaries themselves. To export the actual files, download them individually from `/files` before requesting the data export.
</Note>

<Tip>
  If you are planning to close your account or switch plans, export your data and download important files first. Once an account is closed, files cannot be recovered.
</Tip>

## Storage and Privacy Summary

| Concern                           | How ZeroTwo Handles It                                                      |
| --------------------------------- | --------------------------------------------------------------------------- |
| Are my files private?             | Yes — per-account isolation; no other user can access your files            |
| Are files encrypted?              | Yes — at rest (AES-256) and in transit (TLS)                                |
| Do files expire automatically?    | No — files persist until you delete them                                    |
| Can I download my files?          | Yes — from the Files Library at `/files` at any time                        |
| What happens when I delete?       | Permanent deletion, no recovery possible                                    |
| What happens if I cancel my plan? | Files persist on a downgraded account; deleted only on full account closure |
| Does ZeroTwo train on my files?   | No — uploaded files are not used for model training                         |

## Related Pages

<CardGroup cols={2}>
  <Card title="Files Library" icon="folder" href="/tools/files/files-library">
    Browse, download, and manage all your uploaded files.
  </Card>

  <Card title="Upload Files" icon="upload" href="/tools/files/upload-files">
    How to attach files to chat messages.
  </Card>

  <Card title="Data and Compliance" icon="database" href="/privacy/data-and-compliance">
    How ZeroTwo handles your account data and privacy.
  </Card>

  <Card title="Troubleshooting" icon="search" href="/tools/files/troubleshooting">
    Fix storage and file management issues.
  </Card>
</CardGroup>
