I'm currently using jQuery to remove a div, but I'd like my project to not have to rely on a third party library for it to work. Say my div had the class .main, if I was using jQuery I'd write:
$("div.main").remove()
How would I do this with JS only?