DROP PROCEDURE¶

Removes the specified stored procedure from the current/specified schema.

See also:

CREATE PROCEDURE , ALTER PROCEDURE , SHOW PROCEDURES , DESCRIBE PROCEDURE

Syntax¶

DROP PROCEDURE [ IF EXISTS ] <procedure_name> ( [ <arg_data_type> , ... ] )
Copy

Usage Notes¶

All Languages

For each argument defined for the procedure, the data type for the argument must be specified. This is required because overloading of procedure names is supported and the data type(s) for the argument(s) are required to identify the procedure.

Java, Python, and Scala

For procedures that store code in a file (such as a .jar file or .py file) in a stage, the DROP PROCEDURE command does not remove the file. Different procedures can use different functions/methods in the same file, so the file should not be removed while any procedure refers to it. Snowflake does not store a count of the number of references to each staged file and does not remove that staged file when there are no remaining references.

Examples¶

DROP PROCEDURE add_accounting_user(varchar);

-------------------------------------------+
             status                        |
-------------------------------------------+
 ADD_ACCOUNTING_USER successfully dropped. |
-------------------------------------------+
Copy