From e858a4ea65443fb9555446a7cb8d279abd943ada Mon Sep 17 00:00:00 2001 From: ponderingdemocritus Date: Thu, 21 Dec 2023 11:32:23 +1100 Subject: [PATCH] adds delete macro docs --- src/cairo/commands.md | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/cairo/commands.md b/src/cairo/commands.md index 3aba5f9a..999f59cf 100644 --- a/src/cairo/commands.md +++ b/src/cairo/commands.md @@ -57,4 +57,12 @@ The `emit!` command is used to emit custom events. These events are indexed by [ emit!(world, Moved { address: caller, direction }); ``` +### The `delete!` command + +The `delete!` command deletes a model from the db. + +```rust,ignore +delete!(world, Moved { address: caller, direction }); +``` + This will emit these values which could be captured by a client or you could query these via [Torii](../toolchain/torii/overview.md).