Delete Postgres Gateway Tables
- async AsyncCogniteClient.postgres_gateway.tables.delete(
- username: str,
- tablename: str | SequenceNotStr[str],
- ignore_unknown_ids: bool = False,
-
- Parameters:
username (str) – The name of the username (a.k.a. database) to be managed from the API
tablename (str | SequenceNotStr[str]) – The name of the table(s) to be deleted
ignore_unknown_ids (bool) – Ignore table names that are not found
Examples
Delete custom table:
>>> from cognite.client import CogniteClient, AsyncCogniteClient >>> client = CogniteClient() >>> # async_client = AsyncCogniteClient() # another option >>> client.postgres_gateway.tables.delete("myUserName", ["myCustom", "myCustom2"])