Withdraw an app
Withdraw a Ferrite app permanently, preserve or fork its data first, remove secrets and repositories, and handle custom hostnames safely.
Withdrawing an app takes it offline and deletes the resources its deployment created. Withdraw an app only when it should stop existing. To ship code changes, deploy again from the same project. To pause traffic while keeping stored data, ask your agent to call scale with 0 instances. Scaling to zero still bills for data reserved by the app’s services; only withdrawal stops that charge.
Keep what you need first
Ferrite has no raw data export tool. To keep an app’s data, fork it into a replacement app first as described in Move to a new app before you withdraw the old one.
Before withdrawing an app:
- Keep a copy of the source (for apps deployed with
ferrite deploy, your local project directory is that copy). - Read out any data you want to retain through the app’s own pages or API while it is still running.
- Record which secret names your app needs with
ferrite secrets list(or MCPlist_secrets) if you plan to redeploy it later, because withdrawal removes the app’s stored secrets along with its data. To remove secrets manually before withdrawing, runferrite secrets delete NAMEor ask your agent to calldelete_secret.
What withdrawal removes
Run ferrite withdraw APP_ID (pass --yes outside an interactive terminal), choose Settings > Withdraw app in the dashboard, or ask your agent to call withdraw. The platform runs four steps:
- Cancels any deployment still in progress for that app name, so work started before withdrawal cannot land afterward.
- Removes the app’s routes so its URL stops answering.
- Marks the deployment record as withdrawn.
- Deletes the named resources created by the deployment once the app’s instances stop.
Withdrawal is free and stops every charge for the app, including charges for data reserved by its services; see Understand usage and credits. Treat withdrawal as irreversible: the app’s routes come down and its secrets and data are removed permanently. Afterward, list_apps drops the app and status reports no deployment. Calling withdraw again for the same app succeeds with no effect.
Withdrawal leaves any hosted source repository intact. To remove it, ask your agent to call delete_repository for the withdrawn app. That deletes every branch, tag, and named release at once and cannot be undone.
Move to a new app before you withdraw the old one
To replace an app with a new one at its own host while preserving its data, finish these steps before withdrawing the old app:
- Create the new app. To carry the old app’s data over, fork the app while it is running: run
ferrite fork NEW_NAMEfrom the project directory, or ask your agent to callforkwithappandfork_app. A fork launches a new app at its own host with the old app’s code and a point-in-time copy of its data while the old app stays online.ferrite forkwaits until the fork deploys, then prints its host and one status line per bound service. Add--as-ofwith a timestamp within the last 14 days to copy an earlier state; the platform refuses and explains why if a service no longer retains history from that time. To start without the old data, set a newnameinferrite.jsonand deploy to create a new app and host. - Check the status on each service line from the fork output.
forkedmeans an independent copy.emptymeans the fork’s service started empty: read that data from the old app’s pages or API while it is still running and write it into the new app.sharedmeans the fork points at the same underlying data as the old app; do not withdraw the old app until the Ferrite team confirms what withdrawal does to that data. Writes to the old app after the fork cut are not copied, so move clients soon after forking. - To edit the fork’s code or manifest, copy the project directory without
.ferrite/andtarget/, setnameinferrite.jsonto the fork’s name, and keep the service names unchanged. Deploying from that copy preserves the forked data. - Set the new app’s secrets before deploying: run
ferrite secrets listandferrite secrets setfrom the directory whoseferrite.jsonnames the new app. Those commands target the new app even before its first deployment. Secrets belong to one app and are not copied into a fork, soctx.secretreturnsNoneuntil you set them and deploy. Runferrite deployonce afterward; secrets changed withferrite secretscount as a deployment change, so--forceis needed only if a secret was updated another way, such as withset_secret. A trial account can hold secrets for at most 8 app names that have never been deployed. See Replace an app secret. - Move clients to the new host. If a custom hostname is bound to the old app, rebind it to the new app with
ferrite domains add HOSTNAME --app NEW_APP(or MCPbind_domain) and verify it serves the new app withferrite domains check HOSTNAMEbefore withdrawing the old app. Ifferrite domains checkstill routes to the old app or reports an error, keep the old app running and email the Ferrite team; see Custom domains and TLS. - Withdraw the old app only after confirming you have everything you need from it and verifying that any moved custom hostname serves from the new app.
If you cannot move the data yourself, email the Ferrite team with both deployed app IDs before withdrawing anything; see Get help from the Ferrite team.
Change an app’s routes, services, or resources
Deploying the same project with an edited ferrite.json updates the existing app at the same host, because deploy_source targets ACCOUNT/NAME. What a deployment does to stored data when you remove or rename a service in the manifest is not documented, so treat that data as at risk and read out anything you need through the app’s pages or API before deploying that change.
Delete a preview
A preview expires two hours after creation. To remove one sooner, ask your agent to call delete_preview with the preview_app ID that build_status returned when the preview deployed. See Preview and release verbs.
Close an account
Ferrite has no tool to delete an account. Withdraw every app on the account to stop running workloads and charges. To close the account itself, email the Ferrite team with the account ID; see Get help from the Ferrite team.
Didn't find what you needed? See Get help from the Ferrite team.