mc table tag remove
The mc table tag remove command removes tags from an Iceberg table.
Specify one or more tag keys to remove. The command warns for any key that does not exist on the table and removes the keys that do.
The following command removes the env and owner tags from the mytable table in the mynamespace namespace of the mywarehouse warehouse on the myaistor MinIO AIStor cluster:
mc table tag remove myaistor/mywarehouse/mynamespace/mytable env ownerThe command has the following syntax:
mc [GLOBALFLAGS] table tag remove \
ALIAS/WAREHOUSE/NAMESPACE/TABLE \
KEY [KEY ...]- Brackets
[]indicate optional parameters. - Parameters sharing a line are mutually dependent.
- Parameters separated using the pipe
|operator are mutually exclusive.
Copy the example to a text editor and modify as-needed before running the command in the terminal/shell.
Parameters
ALIAS/WAREHOUSE/NAMESPACE/TABLE
Required
The path to the table from which to remove tags, where:
ALIASis the alias of a MinIO AIStor cluster.WAREHOUSEis the name of the warehouse that contains the table.NAMESPACEis the namespace that contains the table. Specify a nested namespace with additional slash-separated parts, for exampleparent/child.TABLEis the name of the table.
KEY
Required
One or more tag keys to remove, separated by spaces. The command warns for any key that is not present on the table and removes the keys that are.
Global flags
This command supports any of the global flags.
Examples
Remove tags from a table
mc table tag remove myaistor/mywarehouse/mynamespace/mytable env ownerRemove a single tag
mc table tag remove myaistor/mywarehouse/mynamespace/mytable env