table_drop

ReQL command: table_drop

Command syntax

db.table_drop(table_name) → object

Description

Drop a table. The table and all its data will be deleted.

If successful, the command returns an object with two fields:

  • tables_dropped: always 1.
  • config_changes: a list containing one two-field object, old_val and new_val:
    • old_val: the dropped table’s config value.
    • new_val: always nil.

If the given table does not exist