ApiMem().GroupDelete
Deletes one or more Groups from memory.
Description
SILVIA is able to dynamically remove entire named Groups of Behaviors from memory. This function provides direct access to that capability. As with the “groupDisable” function, if passing in more than one Group via the “groups” parameter, the names must be separated by the “|” character. Once deleted, these Groups have been removed from memory, and can NOT then be used (invoked) by the SILVIA runtime engine unless they are re-loaded from a file, or re-created via some other method. Groups to be deleted can be specified using wildcards. For instance, by passing “movies” to the function, all Groups containing the substring “movies” will be removed from memory. This would include “movies”, “movies_scifi”, or “old_movies”.
Example Usage (C#)
//Deleting just the “carexpert” Behavior Group
bool success = _core.ApiMem().GroupDelete(“carexpert”);
Parameters
string | groups | The string containing the “|” separated (Pipe-separated) list of all Behavior Groups to be deleted. |
Returns
The boolean success or failure of the operation.
See Also
- ApiMem().GroupDeleteExcept