In the current system, a question category can show a Bin (delete) icon even when it cannot actually be deleted. This happens because the category may still contain hidden questions that were previously included in exam question sets and used in completed exams. Those questions may later be removed from view or hidden in the Question Register, but they remain linked to historical exam data. As a result, the category is not truly empty, even if the visible question count appears as zero.
This creates:
Confusion (Bin icon implies the category is deletable, and therefore also removable from exam setup)
Admin friction (admins cannot clean up categories after consolidating exam question sets)
Risk of accidental data loss if deletion were forced (could impact previously completed exam results, reporting, and audit history)
Implement a development change that makes category contents and deletion eligibility explicit and manageable for both the Question Register and Exams, by delivering one or both of the following:
Category-level disable/hide capability
Allow admins to disable or hide an entire question category from:
the Question Register
selection when building or editing future exams (so retired categories cannot be selected in new exam setups)
This enables “retiring” categories without deleting questions or affecting historical exam records.
Hidden-question visibility and management tools
Display the count of hidden questions per category (separate from visible questions), including questions still referenced by historical exams.
Provide a way to move hidden questions into another category (for example, an “Archived” category or another existing category), while keeping them hidden in the register.
Ensure the Bin icon (or delete action) is only available when the category contains no questions at all (visible + hidden), and is not referenced by any exams.