delete
gest iteration delete: delete an iteration and drop its task memberships, keeping the tasks.struct Command
pub struct CommandDelete an iteration and drop its task memberships. Tasks themselves are
preserved — only the iteration_tasks join rows are removed.
| Field | Type | Description |
|---|---|---|
id |
String | The iteration ID or prefix. |
force |
bool | Reserved for future guards; accepted for UX consistency with other delete commands but currently has no effect. |
output |
json::Flags | The output mode: normal, --json, --quiet or --raw. |
yes |
bool | Skip the interactive confirmation prompt. |
Implements FromArgMatches, Args, Debug.
Command::call
pub async fn call(&self, context: &AppContext) -> Result<(), Error>Confirm and cascade-delete the iteration along with its task memberships, tags, notes, and relationships, writing a tombstone file.
| Parameter | Type | Description |
|---|---|---|
context |
&AppContext | the application context: settings, store and current project |
| returns | Result<(), Error> | Ok(()) when the command succeeds, or the error that stopped it. |