Deletes that ask first
Some deletes lose other people's work, so SchoolStack shows a page first. Its heading names what you are deleting, a list says what will be lost in numbers (for example "12 pieces of student work will be deleted"), then a red button repeats the action, next to Cancel. Nothing is deleted until you choose the red button, and there is no undo. The page comes for:
- deleting a class and, for administrators, deleting an account: type the name to confirm;
- deleting a post that has students' work, grades or comments;
- deleting a unit or a skill students have practised;
- removing a student from a class;
- deleting a rubric students can already see.
Small things go with one tap: a comment, a picture, a question, a topic (its posts stay) and a post nobody has answered yet.
Agents and the command line ask delete.impact what a delete would lose, then run the command with
confirmed: true (for a class or an account, typedName with its name works too). Without it,
these deletes are refused.
Example: Sara chooses Delete on an old assignment. The page says "24 pieces of student work will be deleted" and "18 grades will be deleted"; she chooses Cancel and archives the class instead.
Related: Copy a class · Archive, restore and delete · People