Delete Record
Delete Record: permanently removes one record from the cloud database by id when its store signal fires.
Delete Record removes the record identified by modelId (or, per idSource, the enclosing repeater item) from its class when store fires. done confirms and completed follows it; failure/error carry access-control or missing-record problems, with completed after those too. Query Records nodes observing the class see the record leave their results automatically.
When to use it
Destructive removal of cloud records. If the product needs undo or soft delete, model an 'archived' flag with Update Record instead — deletion is final.
At a glance
| Category | Data |
| Type name | DeleteDbModelProperties |
| Available in | browser, cloud |
| SSR compatibility | safe |
| Provided by | noodl-runtime |
| Behaviour spec | version 1 (under the hood) |
Inputs
Values
| Name | Type | Default | Description |
|---|---|---|---|
idSource | Enum (explicit, foreach) | explicit | Whether the record comes from the Id input or from the record the surrounding Repeater is on |
modelId | String (ModelName id) | — | Id of the record this node acts on; a record itself is accepted here as well as its Id |
repeaterComponent | Component | — | Names which Repeater supplies the current record when Id Source is From repeater; leave blank to use the nearest enclosing one |
Signals
| Name | Type | Default | Description |
|---|---|---|---|
store | Signal | — | Deletes the record named by Id from its Class in the backend |
What each input does
Id Source (idSource)
- always: From repeater binds the surrounding Repeater's item at the end of the frame (outside one, nothing); Explicit leaves it to Id
Repeater Component (repeaterComponent)
- always: which Repeater supplies the record (blank, the nearest); while From repeater, it is bound again at the end of the frame
Id (modelId)
- always: the record with that id is bound now (a record handed in, by its id; an empty id binds nothing), and Id is sent again
Do (store)
- no Class: refused at once, and Error says so → Failure
- otherwise it joins the frame's batch: at the end of the frame one delete answers every press — Done for each, or Error and Failure for each (no record bound, no backend, or the backend refuses)