Skip to main content

KillWaves

KillWaves [/A/F/Z] waveName [, waveName ]...

The KillWaves operation destroys the named waves.

Flags

/AKill all waves in the current data folder. If you use /A, omit waveName.
/FDelete the Igor binary wave file from which waveName was loaded.
/ZDoesn't generate an error if a wave to be killed is in use or does not exist.

Details

The memory the waves occupied becomes available for other uses. You can't kill a wave used in a graph or table or which is reserved by an XOP.

XOPs reserve a wave by sending the OBJINUSE message.

For functions compiled with the obsolete rtGlobals=0 setting, you also can't kill a wave referenced from a user-defined function.

Examples

KillWaves/A/Z			// kill waves not in use in the current data folder