LibraryTools
Delete
remove variables from a library
Calling Sequence
Parameters
Description
Examples
Delete( name1, name2, ..., archive )
name1, name2, ...
-
name; names of Maple variables to remove
archive
(optional) string; Maple library to delete from
The Delete( name1, name2, ...) calling sequence deletes the variables name1, name2, ... from the library specified in savelibname. If archive is specified, then the variables are deleted from that library.
If archive is a directory, Maple assumes the default library name, maple.mla. Otherwise, archive specifies the path and library name.
The Delete command assumes the variables were saved using calls to savelib or save functions. Therefore, when deleting Maple variables (name1, name2, ...) the corresponding indexname is used, for example, "name1.m". For variables, whose indexname is not in this format, Delete does not work. In this case, march must be used instead.
If archive is specified but does not exist or is not the directory of a library, an error is generated.
If a specified variable does not exist in the library, a warning is generated and evaluation continues.
with⁡LibraryTools:
savelibname≔/home/maple/altlib:
a≔10:
b≔11:
c≔12:
d≔13:
e≔14:
Save⁡a,b,c,d,e
Delete⁡a,b,/home/maple/altlib
Delete⁡c,z,d
Warning, member "z.m" not found in archive, skipping
See Also
LibraryTools[AddFromDirectory]
LibraryTools[BuildFromDirectory]
LibraryTools[Save]
LibraryTools[UpdateFromDirectory]
march
save
savelib
Download Help Document