rm_appcontext

Removes a specific application context, or all application contexts.

rm_appcontext ("context_name", "attribute_name")

Parameters

Examples

Example 1 Uses an asterisk ("*") to remove all attributes in the specified context.

select rm_appcontext("CONTEXT1", "*")
---------
0

Example 2 Uses an asterisk ("*") to remove all the contexts and attributes.

select rm_appcontext("*", "*")
---------
0

Example 3 Shows a user attempting to remove a nonexistent context. The attempt fails, returning -1.

select rm_appcontext("NON_EXISTING_CTX", "ATTR2")
---------
-1

Example 4 Shows the result of a user without appropriate permissions attempting to remove an application context.

select rm_appcontext("CONTEXT1", "ATTR2")
---------
-1

Usage