mc table view drop

The mc table view drop command drops an Iceberg view from the catalog on a MinIO AIStor cluster.

The following command drops the old_view view from the prod namespace in the analytics warehouse on the myaistor MinIO AIStor cluster:

mc table view drop myaistor analytics prod old_view

The command has the following syntax:

mc [GLOBALFLAGS] table view drop ALIAS WAREHOUSE NAMESPACE VIEW
  • 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

Required

The alias of a MinIO AIStor cluster.

NAMESPACE

Required

The name of the namespace containing the view.

VIEW

Required

The name of the view to drop.

WAREHOUSE

Required

The name of the warehouse containing the view.

Global flags

This command supports any of the global flags.

Examples

Drop a view

Use mc table view drop to remove a view from the catalog:

mc table view drop ALIAS WAREHOUSE NAMESPACE VIEW
  • Replace ALIAS with the alias of the MinIO AIStor cluster.
  • Replace WAREHOUSE with the name of the warehouse.
  • Replace NAMESPACE with the name of the namespace.
  • Replace VIEW with the name of the view to drop.

Drop a view with JSON output

Use the --json global flag to output the results in JSON format:

mc table view drop myaistor analytics prod old_view --json

On this page