Remove all closed virtual worlds from memory
The vrclear function removes from memory all virtual worlds that are closed and invalidates all vrworld objects related to them. This function does not affect open virtual worlds. Open virtual worlds include those loaded from the Simulink® interface. You use this command to
Ensure that the maximum amount of memory is freed before a memory-consuming operation takes place.
Perform a general cleanup of memory.
The vrclear('-force') command removes all virtual worlds from memory, including worlds opened from the Simulink interface.