myNamespaceModule.DeleteNamespace([isUserSpecific][, timeoutInSeconds]);
| myNamespaceModule | The name of the namespace-specific module instance |
| isUserSpecific | If TRUE, the system will look only for private keys; if FALSE then the system will look for global keys; OPTIONAL, defaults to FALSE |
| timeoutInSeconds | The number of seconds to wait for the underlying SOAPCALL to complete; set to zero to wait forever; OPTIONAL, defaults to zero |
| Return: | A DeleteNamespaceResponseRec RECORD |
The DeleteNamespace function deletes the namespace defined for this module and all keys and values defined within it.
Example:
IMPORT STD;
myStore := STD.System.Store();
myNamespace := myStore.WithNamespace('TempData', 'MyStore');
// Delete the entire namespace and all its keys
result := myNamespace.DeleteNamespace();
OUTPUT(result.succeeded);
// Delete a user-specific namespace
privateNamespace := myStore.WithNamespace('PrivateTemp', 'MyPrivateStore');
result2 := privateNamespace.DeleteNamespace(TRUE);
OUTPUT(result2.succeeded);See Also: DeleteNamespaceResponseRec