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).