Uninstalls a package that is installed in a MaxCompute project.

Syntax

uninstall package <project_name>.<package_name>;

Parameters

Parameter Required Description
project_name Yes The name of the MaxCompute project to which the package belongs.

Log on to the MaxCompute console. In the top navigation bar, select a region. On the Project management tab, obtain the name of the MaxCompute project.

package_name Yes The name of the package that you want to uninstall.

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

Examples

Uninstall the datashare package that is installed in the test_project_b project. Sample statement:
-- Uninstall the datashare package. 
uninstall package test_project_a.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.
  • DROP PACKAGE: Deletes an existing package.
  • INSTALL PACKAGE: Installs a package 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.