Delete the user-defined function from the persistent data store. The user-defined function can only be deleted if it is not used by any saved feature.
Delete a user-defined function:
>>> udf = catalog.get_user_defined_function("cos")
>>> udf.delete()