How to delete a google map marker createb by json

Hi, I am creating an app using google map component. I read here about creating a google map marker, using json. It worked very well, but I would like to create a button deleting the information once it is used. I have a button that shows latitude, longitude, the google map with a marker in this point, and at the same time, it sends the information by email to another person. There is another button to clean the information used, but i do not know how to clean the marker. Can you help me. Thank you.