SYSTEM$REMOVE_REFERENCE

functionsupportedNative apps, listings & sharing

docs.snowflake.com ↗

System functions

Removes an association from the reference to an object in the consumer account. This function supports both single and multi-valued references. For multi-valued references, an alias to the reference is required. This alias is used to remove a single association. To remove all associations of a multi-valued reference, use SYSTEM$REMOVE_ALL_REFERENCES.

Syntax

supportedpartialnot supportednot scored

SYSTEM$REMOVE_REFERENCE('<reference_name>'[, '<alias>'])

Parameters

NameRequiredDescription
'reference_name'requiredThe name of the reference as specified in the manifest.yml file of the app.
'alias'optionalThe system-generated alias of the association. This argument is required for a multi-valued reference. To get the aliases of the associations for a reference, call SYSTEM$GET_ALL_REFERENCES.

Returns

Returns a VARCHAR value that contains a message confirming that the association was removed.