All Products
Search
Document Center

PolarDB:DROP PACKAGE

Last Updated:Mar 28, 2026

Drops an existing package or package body from the database.

Prerequisites

Before you begin, ensure that you have:

  • Superuser privileges, or ownership of the package to drop

Syntax

DROP PACKAGE [ BODY ] name

Parameters

ParameterDescription
BODYDrops only the package body. The package specification remains intact. If omitted, both the package specification and body are dropped.
nameThe name of the package to drop. Can be schema-qualified.

Example

Drop the emp_admin package (specification and body):

DROP PACKAGE emp_admin;

What's next