asksteps: delete a form and its submissions
asksteps_delete_formDeletes a form or funnel from the connected account — together with every submission it has collected. Requires "forms:write". The first call NEVER deletes: it returns "confirmation_required" and the number of submissions that would be lost. Read that number out to the user, get their agreement, and only then call again with confirm = true. This cannot be undone.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| confirm | No | Set to true only AFTER the user has agreed, knowing how many submissions go with it. | |
| form_id | Yes | The form or funnel id. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| note | Yes | One sentence for the user. On "confirmation_required" it says how many submissions would be lost — read that number out loud before asking. | |
| status | Yes | Outcome. One of: "deleted", "confirmation_required" (read the note and call again with confirm = true if the user really wants this), "not_connected", "not_found", "error". Authorisation can also refuse before the tool runs: "plan_required" (the account's plan does not include agent access), "not_enabled" (the account owner has not switched agent access on), "owner_required" (only the account owner may do this), "mandate_required" (the owner has not granted a mandate for this). The note then says what the user has to do. | |
| leadCount | No | How many submissions this form has collected. Deleting the form deletes them too. |