Drops a package.

Syntax

delete|drop package <package_name>;

Usage notes

If you drop a package, the information about the permissions that are granted by using this package is cleared.

Parameters

Parameter Required Description
package_name Yes The name of the package that you want to drop.

You can execute the show packages; statement on the MaxCompute client to obtain the information about the package that you created.

Examples

Drop the datashare package that is created in the test_project_a project. Sample statement:
-- Drop the datashare package. 
drop package datashare;

Related statements

  • CREATE PACKAGE: Creates a package.
  • ADD TO PACKAGE: Adds the resources that are required by package users to the package that is created.
  • REMOVE FROM PACKAGE: Removes resources from the package that is created.
  • ALLOW PROJECT: A package creator in a project authorizes other projects to use the package that is created.
  • DISALLOW PROJECT: A package creator revokes access permissions on a package from a project.
  • DESCRIBE PACKAGE: Views the details of a package that is created in a MaxCompute project.
  • INSTALL PACKAGE: Installs a package in a MaxCompute project.
  • UNINSTALL PACKAGE: Uninstalls a package that is installed in a MaxCompute project.
  • GRANT: Authorizes a user or role to access a package.
  • REVOKE: Revokes access permissions on a package from a user or role.
  • SHOW: Views the packages that are created or installed in a MaxCompute project.