volanea_delete_resource
Permanently delete ONE resource by id. Deliberately mirrors volanea_list_resources so the two read as a pair, and deliberately previews unless you pass confirm: true — the same shape as volanea_cleanup_test_data, because an agent should have to say twice that it means to destroy something.
Use volanea_cleanup_test_data instead when tidying up after yourself: it only ever touches artifacts this server created, whereas this deletes anything you name, including resources a human built. Deleting a segment does NOT delete its contacts; deleting a template does NOT recall mail already sent with it; deleting a workflow strands any contact currently mid-run.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | The resource id, e.g. `tmpl-…`, `seg-…`, `wf-…`, `camp-…`, `whep-…`. | |
| confirm | No | Must be true to actually delete. Omitted or false returns what WOULD be deleted and changes nothing. | |
| resource | Yes | Which kind of resource `id` refers to. Must match the id's prefix or the call is refused. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| code | No | Machine-readable failure code to branch on. Present only when success is false. | |
| data | No | Present when success is true. | |
| error | No | Human-readable failure reason. Present only when success is false. | |
| success | Yes | False when the call failed; read `error` and `code` in that case. |