All Products
Search
Document Center

MaxCompute:REMOVE FROM PACKAGE

Last Updated:Mar 26, 2026

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