I have fetched the meshes with some specific names and want to add new model group instead of that and its working.
But on triggering the click event the raycaster is still able to get the mesh as if it is still present there, how to remove it completely.
for (let i = 0; i < seatMeshes.length; i++) {
seatMeshes[i].geometry.dispose();
seatMeshes[i].material.dispose();
seatMeshes[i].parent.remove(seatMeshes[i]);
}