Skip to content
Playground(another site)

bynk.agent.removed_live

Error A removed agent declaration names a class that is still declared; removing a class deletes its stored data.

removed agent Cart tells the next deploy to delete the class Cart and all of its stored data. While Cart is still declared, that would delete the data of a class the code still uses, so the two together are refused. Delete the agent Cart declaration; the data goes at the next deploy, once you confirm it by name. If the class should stay, delete the removed agent line instead.

Example

removed agent Cart // ✗ `Cart` is still declared
agent Cart { … }
removed agent Cart
agent Basket { … } // ✓ `Cart` is gone

In the Book

See also

  • Every code in its category, Agents, on the diagnostic index.
  • bynk explain bynk.agent.removed_live shows the same from the installed toolchain, without a network.