Go to: Synopsis. Return value. Flags. MEL examples.
deleteUI [-collection] [-control] [-editor] [-layout] [-menu] [-menuItem] [-panel] [-panelConfig] [-radioMenuItemCollection] [-toolContext] [-uiTemplate] [-window]
string [string...]
deleteUI is undoable, NOT queryable, and NOT editable.
This command deletes UI objects such as windows and controls. Deleting
a layout or window will also delete all of its children. If a flag
is used then all objects being deleted must be of the specified type.
This command may not be edited or queried.
NOTE: it is recommended that the type flags be used to disambiguate
different kinds of objects with the same name.
None
collection, control, editor, layout, menu, menuItem, panel, panelConfig, radioMenuItemCollection, toolContext, uiTemplate, window
Flag can appear in Create mode of command
|
Flag can appear in Edit mode of command
|
Flag can appear in Query mode of command
|
Flag can be used more than once in a command.
|
// Example 1.
//
// Create a simple window and then delete it and all of its children
// with one 'deleteUI -window' command.
//
string $window = `window`;
paneLayout;
button;
showWindow $window;
deleteUI -window $window;
// Example 2.
//
// Create a window with a number of buttons and delete a few of the
// buttons with the 'deleteUI -control' command.
//
string $window = `window`;
columnLayout;
string $b1, $b2, $b3;
button; button; button;
$b1 = `button`;
$b2 = `button`;
$b3 = `button`;
showWindow $window;
deleteUI -control $b1 $b2 $b3;