delete_answer_choice
Delete ONE answer choice from a question in a BlockSurvey team draft. This is destructive — confirm with the end user which choice they mean before calling this. Identify the choice with optionId or choicePosition. The question must keep at least 2 choices. Deleting a choice that's still referenced elsewhere is refused unless force is set — tell the user about that in plain language and ask whether they still want to delete it instead of blindly forcing it through. Display logic, discount logic, calculations, feedback, and jump-logic conditions referencing the deleted choice are fully cleaned up automatically once you proceed; only a piped reference is left dangling even with force. For choice-style questions (multiplechoice, checkboxes, dropdown, dropdownmultiple, ranking, colorpicker — for colorpicker, value is a text prompt to pick a color for, e.g. "Preferred logo color"; the respondent picks the actual color when answering) this works on options; for matrix questions you must also say whether you mean rows or columns via target. Not applicable to consent (its choices are fixed) or any other question type without answer choices. Use get_survey_details first to get the question's and choices' current ids.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"surveyId": "<surveyId>"
},
"name": "delete_answer_choice"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| force | No | Delete even if the choice's id still appears elsewhere in the survey. Only set this after explicitly telling the user about the reference and confirming they still want to proceed. | |
| target | No | For matrix questions only: which grid axis to edit. Required if the question is a matrix type, ignored otherwise. | |
| teamId | No | Which team workspace to act in (ids come from get_account_info or list_surveys). Optional: if omitted, the server uses the team that owns the given surveyId, or your only team. Required for create_survey when you belong to several teams. | |
| optionId | No | The existing choice's id, from get_survey_details. Provide this OR choicePosition. | |
| position | No | 0-based index into the survey's questions array. Provide this OR questionId, not required to provide both. | |
| surveyId | Yes | The Survey ID containing the question | |
| questionId | No | The question's id, as seen in get_survey_details's output | |
| choicePosition | No | 0-based index of the existing choice within the question's choice list (e.g. 2 = the 3rd choice). Provide this OR optionId. |