Node: removeChild() メソッド - Web API | MDN

removeChild() は Node インターフェイスのメソッドで、子ノードを DOM から取り除き、取り除いたノードを返します。