You can reset code for individual exercises within a lesson, and progress and code for an entire course.
To reset your progress on an entire course click the "Reset Progress" button, found on the course's home page. This will delete all existing code and reset your progress back to 0%:
To reset code on an individual exercise, click the 'Reset Exercise' button, found within the learning environment under the workspace. This will reset all existing code on that exercise: