If a single line of a script is highlighted, it can be deleted by pressing Ctrl+Delete or using the Delete button at the bottom of the Script dialog. If you try to delete a single line that is part of a loop definition or an If-Else statement block, however, you will see a message similar to this:
As can be seen, the dialog asks if you want GoldSim to automatically expand the selection to delete the entire loop or if statement (Yes), or cancel the deletion (No).
If you would like to delete a contiguous block of statements, you can select them by highlighting their line numbers (by clicking and dragging). Once you have selected them this way, you can press Ctrl+Delete or use the Delete button on the Script element. Note, however, when you are deleting multiple statements, the highlighted block of statements for deletion must be a logically complete block of statements. For example, you could not delete just a portion of a For loop or If-Else statement block.
Note: Ctrl-Shift-Delete will delete all statements in a script.