いろいろやり方はあるけどremove_childでツリーから削除するのが楽
https://docs.godotengine.org/ja/4.x/tutorials/scripting/change_scenes_manually.html