clear
Remove items from the workspace.
Syntax
Section titled “Syntax”clearclear(name1, name2, ...)clear allclear functionsclear globalDescription
Section titled “Description”Without arguments, removes all variables from the current workspace (functions and global state are preserved). With one or more names, removes only those. Special keywords:
'all'— remove everything (variables, functions, classes)'functions'— clear cached function definitions (forces re-parse on next call)'global'— remove global variables'classes'— clear class definitions
Examples
Section titled “Examples”clearclear x y zclear all