Planet endless runner (flyer?)

Here’s another problem I’ve run into:
I’m making a 3D Endless Runner (…or Endless Flyer, I guess). I’m trying to make it so that each planet that gets added to the planets variable inside the world variable gets deleted whenever the reset() function gets called. Here’s the link to my code:

https://www.code3dgames.com/3de/#B/rVhbb9s2FH7PrzjwS5TWkd0WbocmKZC5blosTQLbXQcMQ8FIdMRGEjWKsqMU+e87vMmkY2fY0MCoZZ7v3C886vE1T9t3xwP9tXdcJ4JVEmqRnPQGMhOUxt/rHtINYRNRZW3NnkQkvJSC5/XgQ96O7fN2hnd7AIMBXCmRSQ01lZKVNzWe6qPvdWxwdUyKgsMJ7A/UAwrbP9oCWnFxS4WGVYb0zRwZBqNsnlHo1QktaQ9YDauMCgq1bBYLYCXwRsANKSisWJ5DRqqKlm+RcUkEaCaUXtJVp3qmzqIDZY0mx+jDmSBLJttI4eYfp5NJ/DtNJBevIhj21eflCA40i5K6yIlEoT/U9ywjKQbgLUjR0AeHyNlNJq1eI++0uGa0lOeKEO2vMibpPkqOf/EMIWkaac6DwPMEnRPEuo6aa0prkJkNgXOV1BWaPCWSqaivWJnyVczKkoqvLJUZDIKzj1TpceauNGILlwNk1Dq0W4axMvD5igptFFvSsaZGb0Z939A+vMDPEP90FAaDHYIuhcz4jSBVxhIr6VDbPHjZh+7BGKmeDtePgQIjOq54zVB7Gd+jltFwGGbAgMIUCFqmWHSiB6kgK5sHlQJrrE4J9g03eUmwI7sadLyBR1/p9dn51FKiH6SUjOSM1LaOtLWOURXojN3T6FF6+lvyoVlTnjQFllusBkasWyIdZyxPo05oyotJThWoc/WZ/YPZ/HQ6h/Hl+08XZ3B5gTZP4GLyxxzOP11MOpj1T/Xe5VL7tyB5TY8A9vRHVxYXeap6BX8DVDkpqUQn//yrrw9SmlNJr9zxoikTlZhIHFgOALaACGWf6MCsjwEWXECE7tM7NQVkxurYyvdRLrOCFnxJowB21KEe9vzvB2Wc7mXXW0siiXIQ6+NUP0c2Q5ga82g+zgFHsYZsDZOmGMnxt28pE7K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