DROP FUNCTION | Snowflake Documentation (original) (raw)

ReferenceSQL command referenceFunctions, procedures, & scriptingDROP FUNCTION

Removes the specified user-defined function (UDF) or external function from the current/specified schema.

See also:

CREATE FUNCTION , ALTER FUNCTION , SHOW FUNCTIONS, DESCRIBE FUNCTION

Syntax

DROP FUNCTION [ IF EXISTS ] ( [ , ... ] )

Parameters

_name_

Specifies the identifier for the UDF to drop. If the identifier contains spaces or special characters, the entire string must be enclosed in double quotes. Identifiers enclosed in double quotes are also case-sensitive.

_argdatatype_ [ , ... ]

Specifies the data type of the argument(s), if any, for the UDF. The argument types are necessary because UDFs support name overloading (i.e. two UDFs in the same schema can have the same name) and the argument types are used to identify the UDF you wish to drop.

Usage notes

All Languages

Java, Python, and Scala

Examples

This demonstrates the DROP FUNCTION command:

DROP FUNCTION multiply(number, number);

--------------------------------+ status | --------------------------------+ MULTIPLY successfully dropped. | --------------------------------+