Destroy a SpicyAPI task's stored content
spicyapi_task_purgeDestroy a finished task's stored media, result, prompt, and input text, keeping the charge record intact. Irreversible; download wanted files beforehand. Requires user confirmation.
Instructions
Permanently destroy one terminal task's stored content: generated media, result payload, prompt, and input text. This destroys content, not the record of what it cost — the ledger entry, charged amount, model, state, timestamps and request ID all stay queryable afterwards, so this never hides or reverses a charge and never refunds anything. It cannot be undone and there is no per-output granularity: the unit is one whole task. Download any result the user still wants before calling this. Only tasks in a terminal state are accepted. An accepted task cannot be canceled and there is no cancellation API, so for a queued or running task wait until it finishes (task_wait), then purge it. Repeating the call on an already destroyed task succeeds and changes nothing. Requires a user confirmation round.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| taskId | Yes | The exact task whose content should be destroyed. Only call this for a task the user named; never sweep task history on your own initiative. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |