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 that owns the package. To find the project name, log on to the MaxCompute console, select a region in the top navigation bar, and check the Project management tab. |
package_name |
Yes | The name of the package to uninstall. To obtain the information about packages that you created, run show packages; on the MaxCompute client. |
Example
Uninstall the datashare package (owned by test_project_a) from test_project_b:
-- Uninstall the datashare package.
uninstall package test_project_a.datashare;
Related statements
-
CREATE PACKAGE: Creates a package.
-
ADD TO PACKAGE: Adds resources to a package.
-
REMOVE FROM PACKAGE: Removes resources from a package.
-
ALLOW PROJECT: Authorizes another project to use a package.
-
DISALLOW PROJECT: Revokes a project's access to a package.
-
DESCRIBE PACKAGE: Shows the details of a package.
-
DROP PACKAGE: Deletes a package.
-
INSTALL PACKAGE: Installs a package in a project.
-
GRANT: Grants a user or role access to a package.
-
REVOKE: Revokes a user or role's access to a package.
-
SHOW: Lists packages created or installed in a project.