Delete containers

async AsyncCogniteClient.data_modeling.containers.delete(
ids: ContainerId | tuple[str, str] | Sequence[ContainerId | tuple[str, str]],
) list[ContainerId]

Delete one or more containers.

Parameters:

ids (ContainerIdentifier | Sequence[ContainerIdentifier]) – The container identifier(s).

Returns:

The container(s) which has been deleted. Empty list if nothing was deleted.

Return type:

list[ContainerId]

Examples

Delete containers by id:

>>> from cognite.client import CogniteClient, AsyncCogniteClient
>>> client = CogniteClient()
>>> # async_client = AsyncCogniteClient()  # another option
>>> client.data_modeling.containers.delete(("mySpace", "myContainer"))