mc table remove
The mc table remove command deletes an Iceberg table on an AIStor cluster.
By default, this command removes only the table metadata from the Iceberg catalog.
Use the --purge flag to also delete the underlying table data.
Parameters
ALIAS
Required
The alias of an AIStor cluster.
NAMESPACE
Required
The name of the namespace containing the table.
TABLE
Required
The name of the table to delete.
WAREHOUSE
Required
The name of the warehouse containing the table.
--purge
Optional
Purge the table data along with the metadata. Without this flag, only the table metadata is removed from the catalog.
--purge permanently deletes all data associated with the table.
This operation cannot be undone.
Global flags
This command supports any of the global flags.
Examples
Delete a table (metadata only)
Use mc table remove to delete a table’s metadata while preserving the data:
mc table remove ALIAS WAREHOUSE NAMESPACE TABLE
- Replace
ALIASwith the alias of the AIStor cluster. - Replace
WAREHOUSEwith the name of the warehouse. - Replace
NAMESPACEwith the name of the namespace. - Replace
TABLEwith the name of the table to delete.
Delete a table and purge all data
Use the --purge flag to delete the table and all its data:
mc table remove myaistor analytics prod sales_data --purge