var gContent=document.getElementsByClassName('gallery_content')[0];
gContent.parentNode.removeChild(gContent);
Node.removeChild - MDC Doc Center
var gContent=document.getElementsByClassName('gallery_content')[0];
gContent.parentNode.removeChild(gContent);