Cloud

DROP TABLE

The DROP TABLE statement removes a table that was mapped to a Redpanda topic through a catalog. This does not delete the underlying Redpanda topic.

Syntax

DROP TABLE [IF EXISTS] catalog_name=>table_name;
  • catalog_name: Name of the Redpanda catalog containing the table.

  • table_name: Name of the table to remove.

  • IF EXISTS: Optional. Prevents an error if the table does not exist.

Examples

DROP TABLE default_redpanda_catalog=>transactions;
DROP TABLE IF EXISTS default_redpanda_catalog=>old_events;