> ## Documentation Index
> Fetch the complete documentation index at: /documents/llms.txt
> Use this file to discover all available pages before exploring further.

# DROP FUNCTION

> DROP FUNCTION deletes a custom function.

## Description

DROP FUNCTION deletes a custom function. The function can only be deleted when its name and parameter type are consistent.

Only the owner of the custom function have the permissions to delete the function.

### Syntax

```sql theme={null}
DROP FUNCTION function_name(arg_type [, ...])
```

### Parameters

`function_name`: the name of function to be dropped.

`arg_type`: the argument type of function to be dropped.

## Examples

1. Drop a function.

   ```sql theme={null}
   DROP FUNCTION my_add(INT, INT)
   ```


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.