five-on-it / apps/client/src/ui/deletion
apps/client/src/ui/deletion
Deleting what a player made, without React (Your games, a game's page, the creation page, the Games tab): a draft with its level and its missions (DELETE /drafts/:id: its builds' records go, its creations under way stop; a game published from it stays published), a published game (DELETE /games/:id: gone from every list, its page answering 410 "deleted by its creator", the remixes made of it keeping their copies, publishing its draft again bringing it back), and one mission of a draft (DELETE /drafts/:id/missions/:missionId, at the revision the page showed, so a mission another tool changed meanwhile is not lost); a draft's missions as the page lists them (GET /drafts/:id).