Removes a resource from a package.
Syntax
remove <object_type> <object_name> from package <package_name>;
Parameters
| Parameter | Required | Description |
object_type |
Yes | The type of the object to remove. You can remove only one object at a time. For a complete list of valid object types, see Permissions. |
object_name |
Yes | The name of the object to remove. To get the name, run the corresponding command on the MaxCompute client: table or view — show tables;, resource file — list resources;, function — list functions;, instance — show instances;. |
package_name |
Yes | The name of the package. To list your packages, run show packages; on the MaxCompute client. |
Usage notes
-
Each statement removes one object. To remove multiple objects, run the statement once for each object.
Examples
The following example removes the sale_detail table from the datashare package.
-- Remove the sale_detail table from the datashare package.
remove Table sale_detail from package datashare;
Related statements
-
CREATE PACKAGE: Creates a package.
-
ADD TO PACKAGE: Adds resources to a package.
-
ALLOW PROJECT: Authorizes other projects to use a package.
-
DISALLOW PROJECT: Revokes a project's access to a package.
-
DESCRIBE PACKAGE: Views the details of a package.
-
DROP PACKAGE: Deletes 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 permission to access a package.
-
REVOKE: Revokes a user's or role's access to a package.
-
SHOW: Lists packages created or installed in a MaxCompute project.