evadb.EvaDBCursor.drop_function#

EvaDBCursor.drop_function(udf_name: str, if_exists: bool = True) EvaDBQuery[source]#

Drop a udf in the database.

Parameters:
  • udf_name (str) – Name of the udf to be dropped.

  • if_exists (bool) – If True, do not raise an error if the UDF does not already exist. If False, raise an error.

Returns:

The EvaDBQuery object representing the DROP UDF.

Return type:

EvaDBQuery

Examples

Drop UDF ‘ObjectDetector’

>>> cursor.drop_function("ObjectDetector", if_exists = True)
    0
0   UDF Successfully dropped: ObjectDetector