> For the complete documentation index, see [llms.txt](https://docs.uptiq.ai/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.uptiq.ai/platform/console/app-builder/deploy/app-retention.md). Agents can also search and read this documentation through its [MCP server](https://docs.uptiq.ai/~gitbook/mcp).

# App retention

Set how long a published app stays live, with the retention fields, warnings, reminder and unpublish emails, and organization retention settings.

A published app stays published for a retention period. When the period ends, the Uptiq Platform unpublishes the app. Retention applies on every plan and in every account unless the organization turns it off. It applies to apps only: agents, knowledge, flows, and design systems have no retention period. It's separate from [publishing with approval](https://docs.uptiq.ai/platform/console/app-builder/deploy.md#publishing-with-approval): an approved app publish request doesn't set or change the period.

| Rule                                   | Behavior                                                                                                                                               |
| -------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------ |
| Start of the period                    | A period counts from when it's saved. Saving again, even with the same number of days, starts it again from that moment.                               |
| No period chosen                       | The app gets the organization's default period, counted from the next scheduled run that finds it. Skipping the retention step doesn't exempt the app. |
| Republishing before the unpublish date | Keeps the existing date.                                                                                                                               |
| Republishing after the unpublish date  | Gives the app the default period again, counted from the next scheduled run.                                                                           |
| Unpublish time                         | The app is unpublished by the first scheduled run after its unpublish date, so it can stay live for a while after that date.                           |
| Free plan                              | Free-plan unpublishing works on its own. Turning retention off doesn't stop it.                                                                        |

## Retention fields <a href="#retention-fields" id="retention-fields"></a>

The same fields appear in the publish step, in **App Config** > **Retention**, and in the one-time prompt.

| Field                       | Behavior                                                                                                                                                                                         |
| --------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
| **Owner**                   | Receives the reminder emails. It starts as the app's creator. The owner must be an active member of the account with access to the app, or saving fails.                                         |
| **Retention period (days)** | Required. More than 0 and at most the organization's maximum, which is 90 days unless the organization sets another. Fractions are allowed: 0.5 is 12 hours. A value out of range blocks saving. |
| **Reason**                  | Required, up to 500 characters. Why the app needs to stay published. The reminder emails include it.                                                                                             |

If the owner stops being an active member, the reminder emails go to the app's creator.

The **Owner** field appears only to users who can view the account's users. A **Retention period (days)** value out of range shows Enter more than 0 days, or Enter at most followed by the maximum, such as Enter at most 90 days.

Under the fields, a banner titled **Unpublishes on** gives the date the period would end and explains that the owner is emailed before this date.

## Set retention while you publish <a href="#set-retention-while-you-publish" id="set-retention-while-you-publish"></a>

When retention is on, publishing an app opens the **Publish App: Retention** step before deployment.

1. Check the **Owner**.
2. Enter the **Retention period (days)**.
3. Enter a **Reason**.
4. Check the **Unpublishes on** date.
5. Select **Save and Continue**.

| Button                | Result                                                                                                                                    |
| --------------------- | ----------------------------------------------------------------------------------------------------------------------------------------- |
| **Save and Continue** | Saves the period from now and moves on to deployment. Shown when the app has no period running or you changed a value.                    |
| **Continue**          | Moves on and keeps the saved date. Shown when a period is running and you changed nothing.                                                |
| **Skip**              | Moves on without saving a period. The default period applies, and the one-time prompt isn't shown for this app afterward in this browser. |

## Set or renew retention later <a href="#set-or-renew-retention-later" id="set-or-renew-retention-later"></a>

Use **App Config** > **Retention** to set a period for a published app or to extend one. Republishing doesn't extend it.

1. Open the app in App Builder.
2. Open **App Config** and select the **Retention** tab.
3. Check the **Owner**, **Retention period (days)**, and **Reason**.
4. Select **Save**.

The tab explains that saving starts the period again from today, and **Save** is available even when nothing changed.

When you open a published app that never had a period chosen, and you can publish apps, a **Set a retention period** window can open once. It has the same fields, with **Later** and **Save**. Selecting **Later**, closing it, or saving it marks it as seen for that app in this browser. A period that was chosen and then ran out isn't asked for again here: renew it in **App Config** > **Retention**. If you close the window after changing a value, it asks before it discards the change.

## Warnings in the publish panel <a href="#retention-warnings" id="retention-warnings"></a>

A published app's publish panel shows one unpublish warning, for whichever comes first: the free-plan date or the retention date.

| Warning title               | When it appears                                                                                                                                                         |
| --------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| **Unpublishes on** the date | The date is still ahead. The text says when and for how long the period was set, or that the default applies. It says to extend it from **App Config** > **Retention**. |
| **Unpublishing soon**       | The retention date has passed and the app is waiting for the scheduled run. The text says to set a new period in **App Config** > **Retention** to keep the app live.   |

Republishing doesn't change the date shown under **Unpublishes on**.

## Reminder and unpublish emails <a href="#retention-emails" id="retention-emails"></a>

| Email       | Content                                                                                                                               |
| ----------- | ------------------------------------------------------------------------------------------------------------------------------------- |
| Reminder    | Sent to the owner on each reminder day. The subject names the app and the unpublish date.                                             |
| Unpublished | Sent to the owner when the app is taken offline. It says the app and its data are unchanged and that its custom domains were removed. |

* **Reminder:** The email gives the date in UTC, the time left, the reason, and the steps to extend the period from **App Config** > **Retention**, up to the maximum. It says that custom domains are removed when the app is unpublished. An **Open App** button opens the app in App Builder.
* **Unpublished:** The steps are to republish the app, set a period in **App Config** > **Retention**, and reconnect any custom domains. The email has an **Open App** button.

The reminder days come from the organization's **Warn before (days)** setting, 1 day by default. A reminder day as long as the period or longer is skipped. If none fits, the 1-day reminder is used when the period is longer than 1 day. For a period shorter than a day, the time left is given in hours.

Saving a retention period records a **Publish Retention Updated** event in the audit trail.

## Organization retention settings <a href="#organization-retention-settings" id="organization-retention-settings"></a>

Retention is set for each organization in its configuration on **Organizations**, under **App Builder** > **Publishing** > **Retention**. A blank field uses the default.

| Setting                      | Behavior                                                                                                                                                                  |
| ---------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| **Disable retention**        | Turns retention off for the organization: no retention step, no prompt, no reminders, and no app is unpublished for retention. The other fields are hidden while it's on. |
| **Max retention (days)**     | The longest period a user can choose. Blank means 90 days.                                                                                                                |
| **Default retention (days)** | The period for a published app with no period chosen, until the owner sets one. Blank means 7 days. It can't be longer than the maximum.                                  |
| **Warn before (days)**       | The days before unpublishing when the owner gets an email, separated by commas, for example 7, 1. Blank means 1 day. Each value must be more than 0.                      |

## Troubleshoot retention <a href="#troubleshoot-retention" id="troubleshoot-retention"></a>

| Problem                                                     | What to check                                                                                                            |
| ----------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------ |
| An app is still online after its unpublish date             | The app is unpublished by the next scheduled run. Save a new period in **App Config** > **Retention** to keep it online. |
| Republishing an app didn't move its unpublish date          | Republishing before the date keeps it. Save in **App Config** > **Retention** to start the period again.                 |
| An app has an unpublish date although you skipped retention | An app with no period chosen gets the organization's default.                                                            |
| The app's retention step and tab are missing                | The organization has **Disable retention** turned on.                                                                    |
| An app was unpublished while retention was off              | Free-plan unpublishing works on its own.                                                                                 |

## Related

* [Deploy](https://docs.uptiq.ai/platform/console/app-builder/deploy.md)

***

{% columns %}
{% column width="83.33333333333334%" %}

<p align="right"><em>Maintained by</em> <mark style="color:green;">Abhishek Paul</mark><br><code>AI-assisted, human-approved</code></p>
{% endcolumn %}

{% column width="16.666666666666664%" %}

<div align="left"><img src="https://1326225582-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F0qmgQjJ5aArDTj2ACFHG%2Fuploads%2Fgit-blob-d034645b4f8f8ee661985f5306b60ded3289653c%2Fmaintainer-abhishek-paul.png?alt=media" alt="" width="60"></div>
{% endcolumn %}
{% endcolumns %}


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.uptiq.ai/platform/console/app-builder/deploy/app-retention.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
