Skip to main content

Archiving & deleting a workspace

Shutting a workspace down and deleting it are the same mechanism with one difference: dates.

ArchiveDeleteDelete immediately
EffectEveryone loses access; the workspace stops doing workIdenticalIdentical
Owners can restore itYes, indefinitelyFor 15 daysNo
Support can recover it—From day 15 until day 30, on an owner's requestUntil day 30, on an owner's request
Permanently erasedNeverOn day 30On day 30
SubscriptionUnchangedCancelled on day 15Cancelled at once
Who canOwners and adminsOwners onlyOwners only, signed in within the last 15 minutes
ConfirmationOne clickType the workspace slugType the workspace slug

Nothing is destroyed when you press Delete. The workspace is archived at once and nobody can use it. For the next 15 days an owner can Restore it exactly as it was, or Keep it archived to stop the countdown. After that the workspace leaves your workspace switcher and cannot be restored from the console — but it is still intact, and support can recover it on a request from one of its owners until day 30. On day 30 it is permanently erased.

Delete immediately skips the 15 days. Use it when you want the workspace gone from your account now. It is still not erased on the spot: support can recover it on an owner's request until day 30, and it is permanently erased on the same date as an ordinary deletion. Because it skips your own safety net, it asks you to have signed in within the last 15 minutes.

If you need a workspace's data erased sooner than 30 days, ask support — see When support can change the timer.

Archiving is deliberately the lighter action, with no typing and a plain confirm. It is reversible, and putting a reversible action behind the same ceremony as an irreversible one only teaches people to click through both.

Where to archive or delete​

Both are on the workspace's Settings › General page. Owners can also delete a workspace from the account's Workspaces page: open the ⋯ menu on its row and choose Delete workspace…. It is the same dialog, with the same confirmation. A workspace that is the account itself is deleted from its own settings, once no other workspaces are left under it.

Deleted workspaces are hidden from the Workspaces page. Tick Show deleted workspaces to list them. Each is marked Deleted with the date an owner can restore it until, or, once that date has passed, the date support can recover it until. Account owners and admins see every deleted workspace in the account there. A permanently erased workspace leaves the list for good.

What happens the moment you archive or delete​

Access is revoked immediately, for everyone. Owners keep exactly one thing: they can see that the workspace exists, see where its deletion stands, and restore it while their restore window is open. Nobody — owners included — can read its projects, secrets, settings or history until it is restored.

The workspace's attachments are suspended rather than severed: webhook endpoints and notification channels move to disabled, integration connections to suspended (not revoked), repo links to unlinked, and agent routines are turned off. No data is moved, copied, or rewritten.

Your workspace's name and slug are released immediately, so you can reuse them for a new workspace right away. The permanent ws_… Workspace ID is never reused.

We email the workspace's owners and admins when it is deleted, three days before the restore window closes, and when it has closed.

What restoring does not bring back​

  • API keys. They are revoked at archive time and stay revoked — issue new ones. "Un-revoking" a key is a security hole with a friendly name.
  • Running agent sessions. Their sandboxes are destroyed so they stop costing you money. The sealed session records remain.
  • A cancelled subscription. See Billing — if the subscription was cancelled before the workspace came back, choose a plan again.

Everything else — projects, secrets, settings, members, roles, integrations, repo links, webhooks, channels, routines, and all history — returns exactly as it was, including anything you had already disabled yourself.

Billing​

Only a workspace that is its own account has a subscription. A workspace inside an account bills to the account, and archiving or deleting it never changes the account's subscription.

For a workspace that is its own account:

  • Archiving does not change billing. The subscription keeps running while the workspace is archived. An archived workspace does not count against your plan's workspace limit.
  • Deleting keeps the subscription running for the 15 days you can still restore the workspace yourself, then cancels it. Deleting immediately cancels it at once.
  • A cancelled subscription ends at the end of the current billing period.

When the workspace is erased​

On day 30 the deletion begins. It starts by destroying the encryption keys for the workspace's secrets, which makes every stored secret unreadable immediately, and then removes the workspace's data context by context.

Nothing can be restored once that begins — not by you, and not by support. If you might want the workspace back, restore it, or ask support to, before the erasure date shown on the banner and in our emails.

What we keep, and why​

A deletion removes your workspace's data. A small, fixed set of records deliberately survives it — each because deleting it would break an obligation we have to you or to a regulator — and each is kept for a fixed time, then deleted too.

RecordWhy it survives
billing.invoicesInvoices are financial records with tax and accounting retention requirements that outlive the customer relationship. Deleting a workspace never shortens one. Kept 10 years after the account they belong to is erased.
events.audit_entriesSecurity-category audit entries are the record of who did what, including the deletion itself, and deletion is precisely when that record matters. Kept 2 years, then deleted. Non-security entries are erased with the workspace.
events.event_logHolds the workspace's own lifecycle record (archived, deleted) and the security events behind those audit entries. Kept 2 years with them; the remainder is erased with the workspace.
membership.lifecycle_requestsThe record of the deletion: who asked, when, why, and what was destroyed. Your deletion certificate is a read of it. Deleting this with the workspace would erase the evidence that the deletion happened. Kept 10 years, then deleted.

Nothing in that list contains your workspace's content — no secrets, no code, no project data, no configuration. The workspace's stored files (build objects, logs, uploads) are deleted with the rest of its data on day 30.

When the erasure finishes, we email the workspace's former owners and admins a summary of the deletion certificate: when it was erased, how much was removed, and what we keep and for how long.

Account-level records are not touched by a workspace deletion. Your account's credit balance, credit ledger, spending limits, and settlement statements belong to the account, not to any one workspace, and deleting a workspace never draws them down.

Backups​

Our database is backed up so that we can recover from an outage. Backups are encrypted, are never used to run the product, and expire on their own: a deleted workspace's data can remain in a backup for up to 30 more days after it is erased from the live system, and is then gone for good. If we ever had to restore the live system from a backup, we would first re-apply every deletion made since that backup was taken.

Closing the whole account​

Deleting your last workspace does not close your account. The account survives with zero workspaces, your billing relationship continues, and you can create a new workspace whenever you like. Ending the relationship is a separate, deliberate action.

curl -X POST https://api.orunbase.com/v1/workspaces/ws_a1b2c3d4/close \
-H "Authorization: Bearer $TOKEN" \
-d '{"confirm": "acme"}'

Closing schedules every workspace in the account for deletion, then the account itself — each on the same timeline as an ordinary delete: 15 days in which owners can restore it themselves, support recovery until day 30, then erasure. Nothing is destroyed when the call returns. Owners only, and you type the account slug to confirm.

A few things follow from "each workspace keeps its own timer":

  • A workspace you had already scheduled for deletion keeps its earlier date. Closing the account never pushes a deletion further out than you asked for.
  • A workspace you had parked (archived with no timer) gets one. Otherwise it would sit there indefinitely and the account could never finish closing.
  • The account is deleted last, only once every workspace under it is gone.

If any workspace cannot be scheduled, the call stops and returns 409 naming them — and your account is left open rather than half-closed. Workspaces already scheduled by that attempt keep their timers; Keep it archived cancels any of them individually.

Your subscription is cancelled when the root workspace's 15-day restore window closes — the same rule as a single workspace.

What survives a closed account​

The account-level records above — the ones a workspace deletion deliberately never touches — are keyed to the account rather than to any workspace, so deleting the workspaces does not remove them. They survive the account too, for 10 years after the account is erased, and are then deleted along with its invoices.

RecordWhy it survives
billing.credit_balancesYour remaining credit balance, kept so a closure that turns out to be a mistake — or a dispute about what was left — can be settled against a real number rather than a recollection.
billing.credit_bucketsThe individual grants behind that balance: what was bought or granted, when, and when each expires. A balance nobody can account for is not evidence of anything.
billing.credit_ledgerEvery movement in and out of the balance. This is the audit trail that makes the closing figure checkable rather than asserted.
billing.meter_statementsThe periodic usage statements your invoices were computed from. They are kept for the same span as the invoices themselves, which outlive the customer relationship.
billing.spending_limitsThe caps that were in force, kept so a question about a charge can be answered against the limits that actually applied at the time.
membership.teamsTeams are defined at the account level and can be granted across several workspaces, so they are not any one workspace's data; the closed account's definitions remain with its billing records.
membership.team_owner_handlesThe owner-handle aliases those teams answered to, kept with them so a historical grant or an audit entry naming a handle can still be read back.
affiliates.attributionsWhether the account was referred by one of our affiliate partners, and when. Commission we paid that partner was paid against this record, so it is kept as long as the payments it explains.
affiliates.ordersEach subscription payment made by a referred account and the commission it earned the partner. It is the record of money we paid out, kept for the same span as the invoices it mirrors.

Each closed workspace's deletion certificate lists these alongside the ordinary retained categories, so the disclosure is on the record and not only in this page. Deleting a child workspace never touches them and its certificate does not list them — they are the account's records, not that workspace's.

When support can change the timer​

Three things you cannot do yourself, and support can — each on a written request, each recorded with a reason, and each stated on your deletion certificate where it applies.

Recover it after your restore window. Between day 15 (or the moment of a delete-immediately) and day 30, support can restore a deleted workspace on a request from one of its owners. We check that the request really comes from an owner before acting, and we never restore a workspace you deleted on our own initiative. The restore is the same as yours: everything listed above comes back, and the same things do not.

Erase it sooner. If you need a workspace's data erased before day 30, support can bring the erasure date forward. There is deliberately no button for this: a countdown you can skip with the same click that started it is not a safety net. Even then, nothing is destroyed at the moment support acts — the workspace simply becomes due, and the erasure begins within the hour.

Hold it indefinitely. If a workspace's data is subject to a legal hold — litigation, a dispute, a preservation order — support can mark it so, and it is then never permanently deleted, whatever its timer says. A hold has no expiry date, on purpose: a hold that lapsed on a date could destroy data in the middle of the matter it was placed for. Your own deletion date is untouched and still there when the hold is lifted.

A hold stops the permanent deletion and nothing else. A held workspace can still be archived, deleted, restored, and used exactly as normal.

Proof of deletion​

curl https://api.orunbase.com/v1/workspaces/ws_a1b2c3d4/deletion/certificate \
-H "Authorization: Bearer $TOKEN"

The certificate states what was deleted — per context, with row counts and timestamps — what was retained and on what basis, and when each step happened. It is built from the record of the statements that actually ran, not from a description of what deletion is supposed to do.

It also names any support intervention: if the date was brought forward, the certificate says when and by whom and quotes the written request; if a legal hold is in force, it says so and gives the reason, which is the answer to "why has this not deleted yet?".

It reports complete: false if any part of the deletion did not finish, rather than rounding up. Read it against the account that owned the workspace: after a deletion the workspace itself has no members left to authorize the request.

API​

VerbRoute
ArchivePOST /v1/workspaces/{id}/archive
Delete (archive + timer)DELETE /v1/workspaces/{id} — body {"confirm": "<slug>"}, add "force": true to delete immediately
RestorePOST /v1/workspaces/{id}/restore
Keep it archivedPOST /v1/workspaces/{id}/cancel-deletion
Current stateGET /v1/workspaces/{id}/lifecycle
CertificateGET /v1/workspaces/{id}/deletion/certificate
Close the accountPOST /v1/workspaces/{accountId}/close — body {"confirm": "<account slug>"}

GET …/lifecycle returns purgeAfter: null for a workspace that is archived with no timer, or the erasure date for one that is deleted, and selfRestoreUntil, the last moment an owner can restore it themselves (forced: true for a delete-immediately). It also returns restoreCaveats — the same list as above, so you never have to reconstruct it.

Restore and Keep it archived answer 410 with reason: "self_restore_closed" and recoverableUntil once the restore window has closed. A delete with "force": true answers 403 with reason: "reauth_required" unless you signed in within the last 15 minutes.