- Categories:
System functions (System Control)
SYSTEM$REMOVE_ ALL_ REFERENCES¶
Deletes all associations to the reference.
Syntax¶
Arguments¶
Required
'reference_name'The name of the reference as specified in the
manifest.ymlfile of the app.
Returns¶
Returns a VARCHAR value that contains a message confirming that all associations to the reference were removed.
Examples¶
This example assumes that the app manifest defines consumer_tables. The reference can be
single-valued or multi-valued. Add this procedure to the app’s setup script. The config
schema and app_admin application role must already exist, with USAGE on the schema
granted to the role. See Request references and object-level privileges from consumers for the prerequisites:
After installing the app as my_app, a consumer with the my_app.app_admin application role
clears the associations:
The procedure returns a status message. It removes the associations, not the consumer objects
or the reference definition in the manifest. A subsequent call to
SYSTEM$GET_ALL_REFERENCES for consumer_tables returns [].