/Engine/Source/Editor/UnrealEd/Public/EditorModeRegistry.h
Unregisters an editor mode. Typically called from a module's ShutdownModule() routine. Note: will exit the edit mode if it is currently active.
void UnregisterMode ( FEditorModeID ModeID )