evadb.EvaDBCursor.drop_table#

EvaDBCursor.drop_table(table_name: str, if_exists: bool = True) EvaDBQuery[source]#

Drop a table in the database.

Parameters:
  • table_name (str) – Name of the table to be dropped.

  • if_exists (bool) – If True, do not raise an error if the Table does not already exist. If False, raise an error.

Returns:

The EvaDBQuery object representing the DROP TABLE.

Return type:

EvaDBQuery

Examples

Drop table ‘sample_table’

>>> conn.drop_table("sample_table", if_exists = True)