Open this page in the API Guide

ScriptEditorContext.removeFromScriptEditor Method

Remove context from a script editor, and deactivate the script editor, and then dispose of this context.