Remove one or several modules
result = atomsRemove(modules[,section][,delete])
modules mx1 or mx2 character string matrix: | |
---|---|
1st Col. Technical name Mandatory 2nd Col. Version Optional If this field is empty or is not present, all versions of the module are removed. |
: :section This argument controls the list of sections where search modules to remove. section is a single-string and its value should be :
- “all”: Modules to remove are searched in both “user” and “allusers” sections.
- “allusers”: Modules to remove are only searched in the “allusers” section.
- “user”: Modules to remove are only searched in the “user” section.
:
atomsRemove remove one or more modules.
// Display some additionnal information
`atomsSetConfig`_("Verbose","True");
// Load the test repository
`atomsRepositoryAdd`_("http://scene2.test.atoms.scilab.org");
// install toolbox_4 : both 1.0 and 1.1 versions
// Remove all versions of a module
`atomsInstall`_(["toolbox_4" "1.0";"toolbox_4" "1.1"],"user");
atomsRemove(["toolbox_4"]);
// Remove a specific version
`atomsInstall`_(["toolbox_4" "1.0";"toolbox_4" "1.1"],"user");
atomsRemove(["toolbox_4" "1.0"]);
atomsRemove(["toolbox_4" "1.1"]);
// Remove several modules
`atomsInstall`_(["toolbox_4";"toolbox_3"],"user");
atomsRemove(["toolbox_4";"toolbox_3"]);
// Remove a module from a specific section
// ! This example needs write access on SCI directory
`atomsInstall`_("toolbox_4","user");
`atomsInstall`_("toolbox_4","allusers");
`disp`_(`atomsGetInstalled`_());
atomsRemove("toolbox_4","user");
`disp`_(`atomsGetInstalled`_());
atomsRemove("toolbox_4","allusers");
`disp`_(`atomsGetInstalled`_());
// Remove a module, including its archive file
`atomsInstall`_("toolbox_4");
atomsRemove("toolbox_4",%T);
// Remove a module from a specific section, including its archive file
`atomsInstall`_("toolbox_4");
atomsRemove("toolbox_4","user",%T);
// Unload the test repository
`atomsRepositoryDel`_("http://scene2.test.atoms.scilab.org");