DROP FUNCTION SQL Statement | Teradata Vantage - DROP FUNCTION - Teradata Vantage - Analytics Database

SQL Data Definition Language Syntax and Examples

Deployment
VantageCloud
VantageCore
Edition
VMware
Enterprise
IntelliFlex
Product
Analytics Database
Teradata Vantage
Release Number
17.20
Published
June 2022
ft:locale
en-US
ft:lastEdition
2025-11-06
dita:mapPath
jco1628111346878.ditamap
dita:ditavalPath
qkf1628213546010.ditaval
dita:id
mdr1472255012272
lifecycle
latest
Product Category
Teradata Vantage™

Drops the definition of the specified function or specific function from the Data Dictionary and from the containing database or user.

You cannot drop an external UDF being used as a cast, ordering, or transform routine. You must first drop the definition for the cast, ordering, or transform. See DROP CAST, DROP ORDERING, or DROP TRANSFORM.

You cannot drop a UDF that is referenced in a row-level security constraint definition if the constraint is assigned to a user, profile, or table. You can use ALTER CONSTRAINT to drop or replace a UDF from a row-level security constraint definition, and then drop the UDF. See ALTER CONSTRAINT.

ANSI Compliance

This statement is ANSI SQL:2011 compliant.

Required Privileges

You must have the DROP FUNCTION privilege on an external or SQL function or its containing database or user to drop it.

In addition, you must remove the UDF from any constraint objects that reference it before dropping the UDF.