Reference: Script Editor Toolbar and Edit Menu
Cut the selected text to the clipboard. The text is removed from the script. This selection is also available from the keyboard using Ctrl+X.