by Tim Hunt.
What you are suggesting is not very clear to me, but it sounds dangerously wrong.
Deleting tables like question_attempt_steps, question_attempt_step_data and so on will break your Moodle site.