I'm working on a web project where I need to remove all the child elements of a specific DOM node using JavaScript. Can anyone guide me on how to accomplish this task?

<div id="container">
  <p>This is the first paragraph.</p>
  <p>This is the second paragraph.</p>
  <p>This is the third paragraph.</p>
</div>
<button onclick="removeChildElements()">Remove All Child Elements</button>