Delete asset mappings
- async AsyncCogniteClient.three_d.asset_mappings.delete(
- model_id: int,
- revision_id: int,
- asset_mapping: ThreeDAssetMapping | Sequence[ThreeDAssetMapping],
Delete 3d node asset mappings.
- Parameters:
model_id (int) – Id of the model.
revision_id (int) – Id of the revision.
asset_mapping (ThreeDAssetMapping | Sequence[ThreeDAssetMapping]) – The asset mapping(s) to delete.
Example
Delete 3d node asset mapping:
>>> from cognite.client import CogniteClient, AsyncCogniteClient >>> client = CogniteClient() >>> # async_client = AsyncCogniteClient() # another option >>> mapping_to_delete = client.three_d.asset_mappings.list(model_id=1, revision_id=1)[0] >>> res = client.three_d.asset_mappings.delete( ... model_id=1, revision_id=1, asset_mapping=mapping_to_delete ... )