unregisterInstance
Unregisters an existing game instance by its id, fails if no instance with the given id exists. Once unregistered, the instance's world will be unloaded and then deleted. Additionally, an beforeDeleteAction function can be provided to perform an action right after instance unregistration, but before VitalMinigameInstance.onUnregister is called and before the world is deleted. An afterDeleteAction function can also be provided to perform an action right after the world unloaded and deleted from the file system.
Unregisters an existing game instance. An instance may perform custom logic during unregistration via VitalMinigameInstance.onUnregister. Additionally, an beforeDeleteAction function can be provided to perform an action right after instance unregistration, but before VitalMinigameInstance.onUnregister is called and before the world is deleted. An afterDeleteAction function can also be provided to perform an action right after the world unloaded and deleted from the file system.