mc table warehouse remove
The mc table warehouse remove command removes an Iceberg warehouse from the catalog on a MinIO AIStor cluster.
By default, this command removes only the warehouse registration from the catalog while preserving the underlying bucket and its contents.
Use the --purge and --force flags together to also delete the underlying bucket and all its data.
Parameters
ALIAS
Required
The alias of a MinIO AIStor cluster from which to remove the warehouse.
WAREHOUSE_NAME
Required
The name of the warehouse to remove.
--force
Optional
Confirm the purge operation.
Required when using --purge.
--purge
Optional
Purge the underlying bucket and all its contents when removing the warehouse.
Requires the --force flag to confirm the operation.
--purge permanently deletes all data in the warehouse.
This operation cannot be undone.
Global flags
This command supports any of the global flags.
Examples
Remove a warehouse from the catalog
Use mc table warehouse remove to remove a warehouse registration while preserving the underlying bucket:
mc table warehouse remove ALIAS WAREHOUSE_NAME
- Replace
ALIASwith the alias of the MinIO AIStor cluster. - Replace
WAREHOUSE_NAMEwith the name of the warehouse to remove.
Remove a warehouse and purge all data
Use the --purge and --force flags to remove the warehouse and delete all underlying data:
mc table warehouse remove myaistor analytics --purge --force
Remove a warehouse with JSON output
Use the --json global flag to output the results in JSON format:
mc table warehouse remove myaistor analytics --json