Is there a function like document.getElementById(\"FirstDiv\").clear()?
document.getElementById(\"FirstDiv\").clear()
child.remove()
For your use case:
document.getElementById("FirstDiv").remove()
This is recommended by W3C since late 2015, and is vanilla JS. All major browsers support it.
Mozilla Docs
Supported Browsers - 96% May 2020