If you are using the online version it is auto saved. If you are using the desktop version you save by selecting File>>Save
To delete the capital gain, go to the summary screen and then go back to the capital gains section and delete the entry you did not want to make.