Drop a user-defined function (UDF)

Use the DROP FUNCTION command to drop a user-defined function (UDF).

This command requires a keyspace and a function.

The following example drops the fLog function. The conditional option IF EXISTS can be included to silently ignore the command if the named function doesn’t exist in the keyspace. Otherwise, an error is returned if the function doesn’t exist.

DROP FUNCTION IF EXISTS cycling.flog;

Was this helpful?

Give Feedback

How can we improve the documentation?

© 2025 DataStax, an IBM Company | Privacy policy | Terms of use | Manage Privacy Choices

Apache, Apache Cassandra, Cassandra, Apache Tomcat, Tomcat, Apache Lucene, Apache Solr, Apache Hadoop, Hadoop, Apache Pulsar, Pulsar, Apache Spark, Spark, Apache TinkerPop, TinkerPop, Apache Kafka and Kafka are either registered trademarks or trademarks of the Apache Software Foundation or its subsidiaries in Canada, the United States and/or other countries. Kubernetes is the registered trademark of the Linux Foundation.

General Inquiries: +1 (650) 389-6000, info@datastax.com