DROP FUNCTION Statement in Confluent Cloud for Apache Flink
Confluent Cloud for Apache Flink® enables registering custom user-defined functions (UDFs) by using the CREATE FUNCTION statement. To remove a registered UDF from the current database, use the DROP FUNCTION statement.
Syntax
DROP FUNCTION [IF EXISTS] [[<catalog_name>].[<database_name>]].<function_name>
Description
Delete a user-defined function (UDF) in Confluent Cloud for Apache Flink.
When you provide the IF EXISTS clause and the function doesn’t exist, no action is taken.
Warning
Dropping a function that other statements depend on can permanently break the other statements. If you drop a function and delete its artifact while a dependent statement is stopped or failed, but not deleted, that statement can’t resume and fails with an artifact-not-found error, because its compiled plan still points to the deleted artifact. Before you drop such a function, follow Update a UDF safely.
Examples
DROP FUNCTION IF EXISTS `<function_name>`;
