DROP LIBRARY

Removes a shared library from the database. The library file is deleted from managed directories on the Vertica nodes. The user defined functions (UDFs) in the library are no longer available. See Developing User-Defined Extensions (UDxs) in Extending Vertica for details.

Syntax

DROP LIBRARY [schema.]library-name [CASCADE]

Parameters

schema

Specifies a schema. If multiple schemas are defined in the database, include the schema name. For example:

myschema.thisDbObject
library‑name

The name of the library to drop, the same name used in CREATE LIBRARY to load the library.

CASCADE

Drops any functions that were defined using the library. DROP LIBRARY fails if CASCADE is omitted and one or more UDFs use the target library.

Privileges

Superuser

Example

To drop the library MyFunctions:

=> DROP LIBRARY MyFunctions CASCADE;