delete log entry
This block is part of the data group and was last modified in core v15.0.2.
delete log entry v15.0.2 Deletes an entry of an ordered log: a tombstone (set fields, changed sequence moved) or, with hard, the document itself. A cancelled order event, a redacted audit record, a removed message.
- flow
- storage
valuerequiredthe storage the log's entries are documents of; it names the log
- key
valuerequiredthe log within the storage: an order, an account, a channel
- id
valuerequiredthe entry's id, unique within its key
- hard
conditionremove the document instead of leaving a tombstone
- set
objectthe tombstone's fields
- key field
valuethe field that holds the key; log_key by default
- id field
valuethe field that holds the entry's id; id by default
- created field
valuethe field that holds the created sequence; created_seq by default
- changed field
valuethe field that holds the changed sequence; changed_seq by default
- flow
- success
condition - found
condition - entry
object - guid
value - seq
number - error
value
Without hard it is log_update with touch: the set fields are the tombstone (for example {deleted: true}) and the entry stays for the readers that were away. hard removes the document, names the id in later log_since catch-ups' deleted_ids, and moves the key's head (and its group's heads) back when it was the head. A sequence is a millisecond stamp from the key's own clock, max(now ms, the key's last + 1), so it is strictly increasing per key in commit order and compares with a cursor (cursor_set, cursor_lag).
Version history
Introduced in v15.0.2.
v15.0.2: block added in this release.
Back to
data Return to the main group to view all sub-groups Back to ordered log Return to the group to view all blocks within this group