JavaScript Eliminar el elemento OnClick

function remove(elem){
  elem.parentNode.removeChild(elem);
}
<div id="i", onclick="remove(this)">click</div>
Courageous Cardinal