questionBank_delete
Deletes a question bank and every one of its items. Rejected with a QUESTION_BANK_INTERDEPENDENCY error if a Riddle in this bank's own project still references it, and BOTH VERSIONS OF A RIDDLE COUNT: the reference tracking is refreshed on every write - a publish, a duplicate, a template-use, an edit in the Creator, or a draft edit through the Builder API (riddle_builder_update and the riddle_builder_* tools) - and it looks at the draft AND, while the Riddle is published, at the live version. So adding a QuestionBank block pointing at this id is enough to protect the bank without (re)publishing, and removing that block from the draft of a published Riddle does NOT release it: the live version keeps pulling the bank until the Riddle is republished or unpublished. A successful delete therefore does mean no Riddle in the project references the bank. Two things the guard still does not cover: a validate-only call (riddle_builder_validate) writes nothing and so registers no reference, and the guard is scoped to this bank's OWN project. If the delete IS rejected, find the referencing Riddles with riddle_list/riddle_get, then either remove the QuestionBank block or repoint it at a different bank via riddle_builder_update - questionBank_riddleBlockItems can preview a specific block you already found. Irreversible once it succeeds. Tags the bank carried are cleaned up like questionBank_removeTag does it: one that nothing else uses any more is deleted from the project, one a Riddle or another bank still uses stays. Rejected for a public template id, see questionBank_templateList.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| questionBankId | Yes | The ID of the question bank to delete. |