Babylon delete objects from scene

Hey, i noticed when trying to delete a bunch of meshes that i actually couldn’t? i know the actual JS version of babylon has “mesh.dispose():” but when i tried making a function for it or even just using it in the code itself ( “clear = function(mesh) mesh.dispose() end” and “blox(my mesh name).dispose()”) and neither worked and even showed errors, so im wondering if there is a good and effective way of actually deleting meshes from the scene, thanks!

  • some coding weirdo