using .after()

using .after()

I am using after function to add some html code after the specified id but how can i.delete  the html code afterwards? I am trying to make a toggle in jquery using this technique .after() but is there a removeafter()? Thanks