Deleting an exercise is a destructive action as it would delete all users' solutions to that exercise. Therefore, exercises can never be deleted. Instead, we allow exercises to be deprecated.
Deprecating an exercise has the following behaviors:
- Users who have downloaded or started the exercise can access their existing solution as normal
- Users who have not downloaded or started the exercise, will not see or be able to start it.
To deprecate an exercise, simply change its config.json
entry as follows:
status
: set to"deprecated"
prerequisites
: set to[]
practices
: set to[]
(Practice Exercises only)concepts
: set to[]
(Concept Exercises only)
All other properties must remain the same.
All exercise files must remain untouched.