Routines (alphabetical) > Routines: W > WDELETE Procedure

# WDELETE Procedure

The WDELETE procedure deletes Direct Graphics windows.

## Examples

Create IDL graphics window number 5 by entering:

WINDOW, 5

Delete window 5 by entering:

WDELETE, 5

## Syntax

WDELETE [, Window_Index [, ...]]

## Arguments

### Window_Index

A list of one or more window indices to delete. If this argument is not specified, the current window (as specified by the system variable !D.WINDOW) is deleted. If the window being deleted is not the active window, the value of !D.WINDOW remains unchanged. If the window being deleted is the active window, !D.WINDOW is set to the highest numbered window index or to -1 if no windows remain open.

If this window index is the widget ID of a draw widget, that widget is deleted.

## Keywords

None.

## Version History

Original | Introduced

## See Also

WINDOW, WSHOW Procedure