Drops a package.
Syntax
delete|drop package <package_name>;Usage notes
Dropping a package clears all permission information granted through that package.
Parameters
| Parameter | Required | Description |
| package_name | Yes | The name of the package to drop. To list packages you created, run show packages; on the MaxCompute client. |
Examples
Drop the
datashare package created in the test_project_a project:-- Drop the datashare package.
drop package datashare;Related statements
- CREATE PACKAGE: Creates a package.
- ADD TO PACKAGE: Adds resources to a package so that package users can access them.
- REMOVE FROM PACKAGE: Removes resources from a package.
- ALLOW PROJECT: Grants another project access to a package.
- DISALLOW PROJECT: Revokes a project's access to a package.
- DESCRIBE PACKAGE: Views the details of a package.
- INSTALL PACKAGE: Installs a package in a MaxCompute project.
- UNINSTALL PACKAGE: Uninstalls a package from a MaxCompute project.
- GRANT: Grants a user or role access to a package.
- REVOKE: Revokes a user's or role's access to a package.
- SHOW: Lists the packages created or installed in a MaxCompute project.