Skip to main content
Use the DROP FUNCTION command to remove an existing user-defined function (UDF).

Syntax

Usage

A function can be dropped using one of the following methods:
  • Full function signature:
  • Function name only, if it’s unique in its schema:
You can run SHOW FUNCTIONS; to list all existing UDFs to see if a function name is unique.
DROP FUNCTION function_name(); drops a function with zero arguments.DROP FUNCTION function_name; drops a function with any number of arguments, including zero, as long as the name is unique.

Examples

First, let’s create some functions.
You can drop a unique function by name:
You cannot drop a function by name when its name is not unique:
You can drop a function by full signature:
Now, f1(int,int) is the only function named f1, you can drop it by name or full signature:

See also

User-defined functions

A step-by-step guide for using UDFs in RisingWave: installing the RisingWave UDF API, defining functions in a Python file, starting the UDF server, and declaring UDFs in RisingWave.

SHOW FUNCTIONS

Show all existing UDFs