evadb.EvaDBCursor.drop_udf#

EvaDBCursor.drop_udf(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’

>>> conn.drop_udf("ObjectDetector", if_exists = True)