delete

Typecommand
DictionaryLCS
LibraryLiveCode Script
Syntax
delete [<object>]
Synonymsclear
Summary

Removes the selected text, or the selected section of an image, or an object.

Introduced1.0
OSmac, windows, linux, ios, android
Platformsdesktop, server, mobile
Parameters
NameTypeDescription
object

Any available object. If no object is specified, the delete command removes whatever is currently selected.

Example
delete
delete this card
delete button 1
RelatedProperty: script, cantDelete, selected
Message: deleteEPS, deleteAudioclip, deleteButton, deletePlayer, deleteBackground, deleteImage, deleteCard, deleteGroup, deleteGraphic, deleteField, deleteVideoclip
Keyword: selection, card, image, control
Glossary: object, command, handler, execute
Function: deleteResource, clipboard
Command: delete chunk, cut, undo, delete stack, compact, remove, group, delete variable, hide, ungroup, delete file
Object: stack
Description

Use the delete command to remove objects or text from the stack.

If no object is specified, the delete command is equivalent to pressing the Delete key. It removes the selection.

Use the delete command to remove a control, card, or group permanently. To remove an object and place it on the clipboard for pasting elsewhere, use the cut command instead. To temporarily hide a control, use the hide command instead.

Important: You cannot delete the object whose script holds a currently executing handler.

Tagsui