Delete - Maple Help

LibraryTools

 Delete
 remove variables from a library

 Calling Sequence Delete( name1, name2, ..., archive )

Parameters

 name1, name2, ... - name; names of Maple variables to remove archive - (optional) string; Maple library to delete from

Description

 • 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.

Examples

 > $\mathrm{with}\left(\mathrm{LibraryTools}\right):$
 > $\mathrm{savelibname}≔"/home/maple/altlib":$
 > $a≔10:$
 > $b≔11:$
 > $c≔12:$
 > $d≔13:$
 > $e≔14:$
 > $\mathrm{Save}\left('a','b','c','d','e'\right)$
 > $\mathrm{Delete}\left('a','b',"/home/maple/altlib"\right)$
 > $\mathrm{Delete}\left('c','z','d'\right)$