diff --git a/modules/console.cc b/modules/console.cc index 73ccd1831..c642c1ab0 100644 --- a/modules/console.cc +++ b/modules/console.cc @@ -1889,6 +1889,7 @@ console_cmd__event__erase(opt &out, const string_view &line) m::dbs::write_opts opts; opts.op = db::op::DELETE; + opts.idx = m::event::fetch::index(event); m::dbs::write(txn, event, opts); txn();