Some interesting examples on how the writing and the erasing are almost one.
Building a Sukkah on Grass;
Is One Allowed to Drown Insects on Shabbos? Killing an Insect in Life-threatening Situations;
The 5 conditions which have to be met in order to fold the garment on Shabbos;