retrofit op remove
Drop one unsealed op, or a contiguous range <from>..<to>, from the oplog
Synopsis
Usage:
retrofit op remove <selector> [flags]
Options
Flags:
--dry-run preview the opids that would be removed without writing
-h, --help help for remove
--help-all show extended help (vocabulary, semantics, caveats)
Global options
Global Flags:
--as string output mode: text | json (default "text")
-C, --chdir string treat <dir> as the working directory for the entire run
--config string retrofit.toml path (overrides discovery; also accepts $RETROFIT_CONFIG)
-f, --file string oplog file path; selects a registered [[schema]] path (overrides discovery)
--no-consolidate render every advisory occurrence instead of collapsing repeats
-q, --quiet count suppress the advisory tier on stderr; stack (-qq) to drop it whole (errors and results still print)
--schema <name> registered schema <name> (resolves via the chain when omitted)
-v, --verbose reveal info-tier advisories on stderr
Docs: https://docs.retrofit.sh/wip/commands/retrofit-op-remove/
retrofit op remove --help-all adds:
Extended help:
Finding the <selector>:
Default `retrofit op show` emits each op in on-disk record
grammar with the opid as the first field:
AddColumn(988edcb612ab, prev=…, in=…, name="email", …)
^^^^^^^^^ ^^^^^^^^^^^^
operator opid (12 hex)
Pass any unique opid prefix of 1-12 hex chars; the short opids
`op show --framing=revise` prints are 4 chars or more.
`op remove` also accepts range syntax (`<from>..<to>`) and the
canonical anchors `root` / `last` / `seal` with an optional
`^` / `~N` decrement (e.g. `seal^`, `last~2`).