Skip to Content

ablate apply

Remove sections from a config, archiving them first. $0 — no agent runs.

ablate apply CLAUDE.md --drop s11,s06 ablate apply CLAUDE.md --drop s11,s06 --write

Arguments & flags

Argument/flagDefaultWhat
FILEauto-detectedConfig file.
--drop IDSrequiredComma-separated section ids to remove, e.g. s11,s06.
--granularitysectionMust match whatever ablate sections was run with — ids mean different things at section vs bullet granularity.
--writeoffActually perform the edit. Without it, this previews only.

What it does

Previews by default; nothing is written until you pass --write. Section ids come from ablate sections — run that first to find out what’s safe to drop.

Removed sections are saved to .ablate/removed/<timestamp>.md with a provenance header (source file, command, git commit, each section’s original line range) before the config file itself is edited. So nothing here is unrecoverable, and if the edit step ever failed partway, the archive would already exist.

Last updated on