title: Remove elements by className
body: <p>I have found posts that suggest a solution to how to remove an element: first, <code>getElementById()</code>, then use <code>.remove()</code> method.</p>
  <p>Suppose I have many elements that belong to a class <code>className</code>. I have to do a <code>for</code> loop to get each id in order to remove them all.
  Is there a faster way to apply <code>remove()</code> on a <code>className</code>? I have tried the below code and it does not work (i.e. all the elements do not get deleted).</p>
  <pre><code>let elementGrp = document.getElementsByClassName('my-class-name');
  elementGrp.remove();
  </code></pre>