Delete stories
delete_storiesDeletes stories and every element whose home story they are in an Archicad project. Preview counts with dryRun first; use only when explicitly asked to delete stories, leaving at least one story.
Instructions
Deletes stories AND EVERY ELEMENT whose home story they are. Use ONLY when the user explicitly asks to delete stories. Run with dryRun: true first to see how many elements each story holds. All references are resolved before anything is deleted (so [2, 3] means the current stories 2 and 3); at least one story must remain. Indexes of the remaining stories shift. By default Archicad closes the gap (the stories above a deleted story move down); keepLevels: true keeps every remaining story at its elevation instead (the story below a deleted one gets taller). Returns {results: [{deleted: story+elementCount} | {error}], movedStories?, stories: [remaining], warning?} or, with dryRun, {dryRun, wouldDelete, remainingCount}.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| dryRun | No | true = change nothing, only report the stories and element counts that would be deleted | |
| stories | Yes | Stories to delete | |
| keepLevels | No | true = the remaining stories keep their elevations (default false: Archicad moves the stories above down to close the gap) |