Delete tables from a database

async AsyncCogniteClient.raw.tables.delete(
db_name: str,
name: str | SequenceNotStr[str],
) None

Delete one or more tables.

Parameters:
  • db_name (str) – Database to delete tables from.

  • name (str | SequenceNotStr[str]) – A table name or list of table names to delete.

Examples

Delete a list of tables:

>>> from cognite.client import CogniteClient, AsyncCogniteClient
>>> client = CogniteClient()
>>> # async_client = AsyncCogniteClient()  # another option
>>> res = client.raw.tables.delete("db1", ["table1", "table2"])