up previous next
Delete

delete variables from the working memory

Syntax
Delete V_1, ..., V_n

where each V_i is the identifier of a variable in the working
memory.

Description
This function removes variables from the working memory. It will not delete global variables. For more information about memory in CoCoA, see the chapter entitled Memory Management. The command Memory() lists the contents of the working memory.

Example
Use R ::= Q[x,y,z];
X := Ideal(x,y);
Y := 3;
Use S ::= Q[a,b];
Z := a^2+b^2;
Memory();  -- the contents of the working memory
["X", "Y", "Z"]
-------------------------------
Delete X;
Memory();  -- X has been deleted from the working memory
["It", "Y", "Z"]
------------------------------- 


See Also