delete
gest artifact delete: delete an artifact and all of its dependent rows.struct Command
pub struct CommandDelete an artifact and all of its dependent rows.
| Field | Type | Description |
|---|---|---|
id |
String | The artifact ID or prefix. |
force |
bool | Reserved for future guards; accepted for UX consistency with other delete commands but currently has no effect — artifacts have no blocking guards. |
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 artifact along with its notes, tags, 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. |