delete
Remove form YAML files from the global library only ($GFORM_HOME/forms/). Does not touch cwd ./forms/, run artifacts, or auth.
For one past run/batch artifact (+ its history rows), use run delete / gform run rm. For bulk generated data, use clean.md.
delete one form
bash
gform delete # TTY: pick a form
gform delete <form>
gform rm <form> # short alias
gform delete <form> --yes # skip confirmShows a preview (name, steps, path), then confirms on TTY. --yes / -y required for non-TTY.
delete all library forms
bash
gform delete all
gform delete all --yesLists every library form, confirms, then removes all. cwd ./forms/ is untouched.
delete a run artifact
bash
gform run delete # TTY: pick an artifact
gform run delete <id>
gform run rm <id> --yesRemoves that artifact dir, refreshes the artifact index cache, and drops matching history.jsonl rows. Unique / --once / --skip-duplicates will not include deleted artifacts afterward. Full notes: run.md — delete one artifact.
delete vs clean vs run delete
| command | removes |
|---|---|
gform delete <form> | one library form YAML |
gform delete all | all library form YAMLs |
gform run delete <id> | one run/batch artifact + its history rows |
gform clean artifacts | all (or age-filtered) run output dirs |
gform clean history | entire dedupe ledger |
gform clean auth | session profiles |
Deleting a form does not delete its past run artifacts — use run delete or clean for those.
gotchas
- Name accepts
<form>or<form>.yaml— resolves library basename. - Aborted form delete prints: "Use
gform cleanfor artifacts/history/auth." - Project-local
./forms/<form>.yamlis never deleted by this command — remove manually or use your file manager. - History rows for deleted forms remain in
history.jsonluntilgform clean history(orrun deletefor a specific artifact). - Top-level
gform rmis form delete;gform run rmis artifact delete.
related
- list.md — see what's installed
- run.md — execute forms; delete one artifact
- clean.md — purge artifacts and history in bulk
- add.md — reinstall a form
- portable.md — library path