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 that you want to remove from the package. You can remove only
one object at a time.
For more information about object types, see Permissions. |
object_name | Yes | The name of the object that you want to remove from the package. Obtain the object
name as follows:
|
package_name | Yes | The name of the package from which you want to remove a resource.
You can execute the |
Examples
Remove the sale_detail table from the datashare package. Sample command:
-- 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 the resources that are required by package users to 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 a package.
- INSTALL PACKAGE: Installs a package in a MaxCompute project.
- UNINSTALL PACKAGE: Uninstalls a package that is installed from a MaxCompute project.
- GRANT: Grants a user or role the permission 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.