---
title: "delete log entry · RUAL Documentation"
description: "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 reda…"
canonical: https://docs.rual.nl/block-types/data/log_delete
language: en
---

# delete log entry

This block is part of the [`data`](https://docs.rual.nl/block-types/data) group and was last modified in core [`v15.0.2`](https://docs.rual.nl/core-versions/150002).

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 `value` required the storage the log's entries are documents of; it names the log

- key `value` required the log within the storage: an order, an account, a channel

- id `value` required the entry's id, unique within its key

- hard `condition` remove the document instead of leaving a tombstone

- set `object` the tombstone's fields

- key field `value` the field that holds the key; log_key by default

Default `log_key`

- id field `value` the field that holds the entry's id; id by default

Default `id`

- created field `value` the field that holds the created sequence; created_seq by default

Default `created_seq`

- changed field `value` the field that holds the changed sequence; changed_seq by default

Default `changed_seq`

- 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`](https://docs.rual.nl/core-versions/150002).

- [`v15.0.2`](https://docs.rual.nl/core-versions/150002): block added in this release.

- [Back to `data`](https://docs.rual.nl/block-types/data): Return to the main group to view all sub-groups

- [Back to `ordered log`](https://docs.rual.nl/block-types/data?group=ordered%20log): Return to the group to view all blocks within this group
