System Command ERASE
The )ERASE command erases the named function(s) or variable(s) in the current workspace. The workspace is not changed on disk unless you )SAVE the workspace. Once a variable or function is )ERASEd it is no longer defined. Attempting to erase a non-existent function or variable returns an error message. )ERASE with no arguments has no effect; to erase everything in the workspace, use the )CLEAR command to start a fresh, clear workspace.
Example
)vars
a0 q
pi←3.1415926
)fns
function function2
)vars
a0 pi q
⎕vr 'function'
∇ function
[1] "this is a function"
[2]
∇ 2013 3 13 11 5 38 975 (UTC)
⎕vr "function2"
∇ function2
[1] 'This is another function'
[2]
∇ 2013 3 13 11 6 0 350 (UTC)
)erase
)fns
function function2
)vars
a0 pi q
)erase function2 pi
)fns
function
)vars
a0 q
)erase q f
NOT ERASED: f
)vars
a0
System Commands (not case sensitive) | |||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|
)CLEAR | )CLOSE | )COPY | )DROP | )EDIT | )ERASE | )EXIT | )FNS | )FOP | )FOPS | ||||
)IN | )INASCII | )LIB | )LOAD | )NEWTAB | )NMS | )OFF | )OPEN | )OPS | )OUT | ||||
)RESET | )SAVE | )SI | )SIC | )SINL | )SYMB | )ULIB | )VARS | )XLOAD | )WSID |