Browse docs
On this page

delete command

Permanently delete every event this query matches. Requires the Can Delete Events role.

All ObiQL commands

Permanently deletes every event that the search filter and time range in front of it match. Deleted events cannot be recovered.

Only members with the Can Delete Events role can run it, and only from the Log Explorer's search bar.

Syntax

ObiQL
<filter> | delete

Square brackets mark an optional part, and angle brackets a value you supply.

Usage

  • Submitting a delete does not run it straight away. The Explorer first counts the matching events, then asks you to confirm, showing the count, the time range and the query.
  • The delete runs over exactly the window that was counted, so events that arrive after you confirm are kept. With All time selected there is no fixed start, and the dialog says so.
  • delete must be the only stage in the query. Nothing can be piped after it.
  • Alert conditions, dashboard panels, liveness checks and saved queries cannot run delete.
  • Without the Can Delete Events role the request is refused before anything is deleted.

Examples

1. Remove noisy debug logs

ObiQL
service=checkout-api level=debug | delete

Deletes every debug event from checkout-api in the selected time range.

2. Remove events that leaked a value

ObiQL
customer_email=* service=signup | delete

Deletes the signup events that carry a customer_email field.