Easier to do than to describe
This is easier to do than it is to describe.
You should practice dragging and dropping tiles into the edit pane until you get the feel of it.
If you create a line of code that you don't need, drag it to the top of the screen and drop it into the trash can.
You can also right-click on the handle and a popup menu will appear with a delete option.