delete
Purge an artifact from ArtifactSmith with a two-step confirmation: first call returns a token, second call permanently removes it.
Instructions
Two-step purge of an artifact. Warn the user before the second call.
Permission: delete.
Arguments: artifact_id (required), confirm_token (optional until the second call).
Returns: first call is step "confirm" with confirm_token, title, versions, expires_in "10m", and a warning.
Second call returns deleted true, artifact_id, and purged_object_versions.
Example: delete(artifact_id="art_example") then delete(artifact_id="art_example", confirm_token="...")Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| artifact_id | Yes | Artifact to purge. Required. | |
| confirm_token | No | Confirmation from the first delete call. Optional on the first call (returns a token valid for 10 minutes). Required on the second call to purge. Example: "AbCdEf...". |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||