Updated on 2026-11-06 GMT+08:00

Drop Function

Function

Deletes a function.

Syntax

DROP [TEMPORARY] FUNCTION [IF EXISTS] [db_name.] function_name;

Keywords

  • TEMPORARY: Specifies to delete a temporary function.
  • IF EXISTS: Used when the function to be deleted does not exist to avoid a system error.

Precautions

  • Deletes an existing function. If the function to be deleted does not exist, the system reports an error.
  • Only Hive syntax is supported.

Example

Delete the function mergeBill.

DROP FUNCTION mergeBill;