CQL for Cassandra 2.0

DROP TABLE

Remove the named table.

Synopsis

DROP TABLE IF EXISTS keyspace_name.table_name

Synopsis Legend

  • Uppercase means literal
  • Lowercase means not literal
  • Italics mean optional
  • The pipe (|) symbol means OR or AND/OR
  • Ellipsis (...) means repeatable
  • Orange ( and ) means not literal, indicates scope

A semicolon that terminates CQL statements is not included in the synopsis.

Description

A DROP TABLE statement results in the immediate, irreversible removal of a table, including all data contained in the table. You can also use the alias DROP COLUMNFAMILY.

Dropping a table triggers an automatic snapshot, which backs up the data only, not the schema.

Example

DROP TABLE worldSeriesAttendees;