Removals
Goal: Remove things from a workspace safely, and know exactly what a Deploy will tear down.
Off the canvas is not gone
Removing something that runs in your cloud does not remove it from your cloud. It waits, greyed out, until the next Deploy, and you can restore it at any point before then.
When a removal takes effect
Before a removal, OpenX checks whether the record has anything running in Azure. What happens next depends on the answer:
| The record | What a removal does |
|---|---|
| An access right, an access configuration or a job identity | It is removed like any other edit, with no confirm. Save to keep the change; there is nothing to Deploy |
| Has nothing running in Azure: never deployed, or a surface or warm query | A confirm says so, and the record is removed from the canvas. Save to keep the change; there is nothing to Deploy |
| Runs in your cloud (a deployed data connection, simulator, API source or workbench) | It stays on the canvas, greyed out, and waits for the next Deploy. Nothing in your cloud changes until then |
Removing something yourself
- Select the node on the canvas.
- In the inspector, press the trash icon (tooltip Remove node).
- If nothing of the record runs in Azure (it was never deployed, or it is a surface or a warm query), a confirm opens with This was never deployed. It will be fully removed from the flow. (or Nothing of it is running in Azure. It will be fully removed from the flow.). Its title names the record, for example Remove data connection 'Line 3 sensors', and it lists anything that goes with it. Press Remove. An access right, access configuration or job identity has no confirm: it is removed as an edit.
- If the record runs in your cloud, there is no confirm: it is marked for removal at once. The node stays on the canvas, greyed out, and its inspector shows what the removal will do and whether it still bills until Deploy, any delete settings its kind has, and one action, Restore.
- Save. Deploy waits until your changes are saved.
The Deploy button counts what is waiting: Deploy · 1 removal, Deploy · 3 removals, and so on.
A removal is called by one name everywhere: on the canvas node, in the drawer, in the inspector, in the Deploy window and in its confirm. That name is the record's Name, or for a workbench with no Name of its own its API name, or else its lookup, which is the only thing that tells two unnamed records apart in a list. When the record has no name of its own, the confirm for the one node you selected names its kind instead, for example Remove this data connection.
When nothing else describes it, the inspector of a waiting node says:
Waiting to be removed on the next Deploy. Nothing has been torn down yet: it still answers, still runs and still costs until then.
When other records are still attached
Most records that something else still points at - a surface that still holds nodes, a database a warm query still reads - are not refused for that. Where a confirm shows it, the warning names what is still attached, for example:
A surface cannot be removed while it still holds things. Remove what is listed first, or remove it together with the surface. Still attached (2): Line 3 sensors, Shift report
The records listed are not removed with it. Remove or disconnect them yourself, or keep them. (A line that reads Also removes N: ... is different: those records do go with it.)
Two are refused instead: a database container that a warm query or surface still reads, and an access configuration that people still hold access from. Disconnect or withdraw those first.
When a removal is refused
Some removals are always refused, because going ahead would break something or leave it running with nothing pointing at it. The refusal says why in one sentence. See A removal was refused for every reason and what to do.
Removing a workbench
A hosted workbench runs one Container App for each mode that is on. Removing a workbench removes the workbench, not only its place somewhere: its record is removed, and its Container Apps are torn down at the next Deploy.
- On the canvas or on its surface. Removing it from the workspace canvas or from the surface it sits on does the same thing. It is marked for removal, greyed out, and counted on the Deploy button.
- Until Deploy it still runs. Its Container Apps keep running and answering, and keep billing, until the Deploy.
- What it names. The inspector of the waiting workbench and the Deploy review say what goes with it: Its Container App for every mode it runs goes with it: followed by the modes that are on (a mode that is switched off has no Container App and is not named), or Its Container App goes with it. when none is on.
- At Deploy. The Container Apps are deleted. One that is already gone counts as removed.
- Restore. Pressing Restore before the Deploy takes it off the waiting list, and the workbench stays. Save after restoring.
- Never deployed. A workbench with nothing running in your cloud has nothing to tear down. Like any such record, it is removed at once, after the confirm described above.
A workbench is a person's to remove, on the canvas. Thinky and agents cannot propose removing one; see A removal was refused.
Taking something off one surface
Taking a record off one surface removes only its place on that surface; the record stays in the workspace. It applies like any other edit, tears nothing down in your cloud, and is not counted on the Deploy button.
A workbench is the exception. It is removed as a whole record, so removing it from its surface removes the workbench and waits for Deploy, as described under Removing a workbench.
Removals proposed by Thinky or an agent
Thinky, or an agent connected over MCP, can propose a removal. It waits in Proposals like any other proposal, and only a person can accept it: a removal needs a person's confirmation, so even Greenfield never accepts one for you.
Accepting it opens a confirm with the button Accept removal. Its last line says when the removal takes effect:
- If it was built in the cloud, it stays until the next Deploy removes it; if it never was, it is removed when you accept.
- For a kind that runs nothing in Azure: It is removed when you accept. There is nothing to Deploy.
- For a record's place on one surface: This takes effect when you accept. There is nothing to Deploy.
Once accepted, a removal that waits for Deploy behaves like one you made yourself: greyed on the canvas, waiting, and restorable.
Restoring a removal
You can bring back anything that is waiting, at any point before Deploy:
- On the node: select it and press Restore in the inspector.
- In Proposals: the Waiting for Deploy (N) section lists every waiting removal, each with Restore. When more than one is waiting, Restore all (N) restores them in one step. If a Deploy ran and could not take a removal away, its row stays in the list and says why underneath, in a sentence you can act on.
Save after restoring.
NOTE
Once a Deploy has started tearing a removal down, it can no longer be restored: "This removal has already started, so it can no longer be taken off the list. Wait for the deploy to finish."
Deploying
Press Deploy in the top bar. Nothing runs yet: the Deploy window opens first, headed Review before you deploy, and says:
Everything below is what this deploy would do to your workspace. Nothing has happened yet.
| Section | What it shows |
|---|---|
| New | Records that will be created in your cloud |
| Changed | Records whose deployed settings will change |
| Removing | Everything waiting to be removed, each with who staged it and how (for example from the canvas or from an accepted proposal) |
| In progress | A deploy that is already running, step by step |
The window can also show Live now (deployed and left alone by this Deploy) and Not in this Deploy (proposals still waiting, which never count toward the Deploy). When the plan says where each record goes, New and Changed are grouped as Shared environment, Your private cloud and Workspace only.
A row in Removing asks How much of it goes: everything goes, or configuration only. A kind with delete settings of its own shows those instead. Until you save, the window reminds you: "Your handling choice is saved with your next Save, and takes effect on the deploy after that."
Press Deploy in the window to run it. You can close the window at any time; the deploy keeps running, and you can come back to it.
If the list changed
If something was staged or restored after you opened the review, the deploy stops before tearing anything down and shows you the fresh list, for example:
One removal is waiting for this deploy. Confirm the list below, then deploy again.
One deploy at a time
Only one deploy runs per workspace. While one is running, a Save (and so a Restore) and an accept are refused with a message that begins "A deploy is already running for workspace" and, when they are known, names the run, when it started and who started it. While a setup window is deploying its record, the message names that window instead: "The ... setup window is deploying for workspace". Wait for it to finish, then try again.
History
Recent activity in the Deploy window splits past work into Deployments and Saves; an accepted proposal is listed under Saves as Proposal accepted.
Keeping a copy of the data
Removing a data store, a container or an IoT fabric that exists in Azure can keep a copy of its data first. The choice is the record's delete setting, shown on the waiting node and in its Removing row of the Deploy window. The first choice is the default.
| Removing | The choices |
|---|---|
| A data store (Data) | Keep a backup copy: A copy of each container's documents is written to archive storage before anything is removed. Remove its databases and containers with it, or the Deploy refuses. Delete without a copy: The account and every record in it are deleted and no copy is kept. Azure's own backups go with the account. |
| A container (Data) | Keep a backup copy, or Delete without a copy: The container and every document in it are deleted and no copy is kept. The documents are gone for good and cannot be recovered, so you type the container's name to confirm. |
| An IoT fabric (Telemetry) | Keep a backup copy (the telemetry, the cold storage account's files, the device list and the hub and analytics settings), Keep the settings only (the device list and the settings), or Delete without a copy |
A data store kept with a copy also asks for its Archive tier:
| Tier | What it costs |
|---|---|
| Cool | About $0.010 to $0.015 per GB a month to keep. Reading it back costs $0.01 per GB. Kept at least 30 days. |
| Cold | About $0.0036 per GB a month to keep. Reading it back costs $0.03 per GB. Kept at least 90 days. |
A data store that was never provisioned has nothing in Azure, and goes when you save. One that exists in Azure waits for Deploy, and its removal says Deleting the account deletes every database and record in it., whichever choice you made. A store's data lives in its containers, so remove its databases and containers with it: the Deploy copies each container's documents, then removes the containers, the databases and the account. A store that still holds a database names it in its removal, Remove its databases and containers with it, or the Deploy refuses:, and a store removed on its own is not deleted: its Deploy refuses while a database still names it, and nothing is lost. A store with delete protection on is refused until you turn it off on the store.
At Deploy, the copy is taken first, into the oi-data-archives container of your landing zone's storage account,
and checked. Only then is the Azure resource torn down. While a container is being copied its documents cannot be
changed; reads still work. A copy that cannot be taken tears nothing down: the removal stays waiting, with the
reason under it. See Data stores and data archives.
Copies stay in your landing zone; nothing in OpenX deletes them. A workspace whose landing zone still holds them
cannot be archived (CALZ_HOLDS_DATA_ARCHIVES).
Removed items and Recover
Removed items lists the copies kept by removals. It sits at the foot of the Proposals drawer, under Waiting for Deploy. Nothing is read until you press Show; press Refresh to read again. The newest copy comes first, and each row names the record, then its kind, when it was archived (in UTC) and how many records the copy holds, for example orders above DatabaseTables · archived 2026-10-30 14:05 UTC · 1200 records.
With no copies it says No removed items. If the list cannot be read, it says why instead of showing an empty list. A container removed without a copy leaves nothing in Removed items, so it cannot be recovered.
A container (a table) and an IoT fabric offer Recover, which opens one confirm before anything happens:
- Recover the table '...'? says: "Recover puts the table back in this workspace, unprovisioned: nothing is rebuilt in Azure yet." and "Deploy to rebuild it. The archived records stay in the archive and are not loaded back."
- Recover the IoT fabric '...'? says: "Azure cannot bring back a removed hub, so the next Deploy builds a new one and every device gets new keys. Each device needs its new connection string before it can send again; a device that joins through a Device Provisioning Service provisions again instead." and "Deploy to rebuild it. That Deploy loads the archived telemetry into the new database once it is ready."
Press Recover. The list says Recovering '...'…, and the page reloads once the record is back. One Recover runs at a time. If it does not finish, the list says so instead of reloading:
- "Recover failed before the table was written back. Reload to check the current state before trying again."
- "Recover was queued but has not finished yet. Reload in a moment to see the table."
Recover never provisions anything: whatever the record runs is rebuilt at the next Deploy, which bills. A table goes back only into a database and data store that are still in the workspace and not waiting to be removed, and never beside a table with the same container name. A record that is in the workspace again is never overwritten. Each refusal is listed in the Removals API.
Who can do what
Any workspace member can accept a proposal; some changes (access, licenses, connected-app requests) need a management right. The same holds for a Save. See Team & Access Rights for the rights by name.
| Action | Who |
|---|---|
| Remove, Restore, Save, Accept | Any workspace member; some changes (access, licenses, connected-app requests) need a management right |
| Deploy | People with Workspace.Deploy. Without it, the button reads Activate to Deploy |
| See Removed items | People with Workspace.DataStore.Table.Read |
| Recover | People with Workspace.Deploy |
What cannot be removed today
Your landing zone. It holds the data archives of everything removed from the workspace, so it is refused with:
Your landing zone holds the data archives of everything removed from this workspace, so it outlives every other removal.
Communications. Removing it is not built yet, so a removal is refused rather than left running behind a record that is gone.
Provenance is never deleted: removing it retires it. A workspace whose Provenance is Locked (a person pressed Lock permanently) cannot be archived, because its containers can never be deleted; one that is still Protected is retired as before. See Provenance.
Provisioned databases, without a copy. A database or container that exists in its Cosmos account is removed with a backup copy (the default): the next Deploy copies its data before deleting it. A database takes only that copy. A container that exists in Azure can also be removed without a copy: choose Delete without a copy in Manage Database and type the container's name to confirm. The next Deploy then deletes the container and every document in it, and no copy is kept: the documents are gone for good. Without the typed name, Delete without a copy is refused, and the record and its data stay where they are. A container that was never provisioned goes when you save. A database's data lives in its containers. Removing a database that exists in its Cosmos account removes every container in it too: the database's removal lists each container with its own copy choice before you Deploy, and the Deploy copies each container that keeps a copy, deletes the containers, then deletes the database. A container set to Delete without a copy still needs its name typed in Manage Database. While the database waits for Deploy, Manage Database says so above its containers. Undo before you save takes back the database and the containers removed with it together; a container you removed yourself stays removed.
Some connection and simulator types. Only the types with a teardown can be removed today: an Azure IoT Hub data connection, and a simulator that runs in Azure.
Next steps
- What Save, accept and Deploy each do -> Save, accept and Deploy
- Understand a refusal -> A removal was refused
- The routes behind this page -> Removals API
- Bring back a removed table or IoT fabric -> Removed items and Recover
On fathym.com: OpenX →