How can I remove the substitution?
You can directly deleted only those lessons, which were manually created in the substitution or lessons you move. Simply do "Right click" and choose "Remove substitution":
The substitutions lines that are created because someone was absent cannot be simply releted. If some teacher is missing and he is teaching certain lesson, you have to do something. Either cancel this lesson, or assign another teacher.
The only way to remove the substitution is to remove the original teacher from the list of absent teachers(or adjust the from-to if he/she is absent on part of the day only).