Delete source
- async AsyncCogniteClient.hosted_extractors.sources.delete(
- external_ids: str | SequenceNotStr[str],
- ignore_unknown_ids: bool = False,
- force: bool = False,
-
- Parameters:
external_ids (str | SequenceNotStr[str]) – The external ID provided by the client. Must be unique for the resource type.
ignore_unknown_ids (bool) – Ignore external IDs that are not found rather than throw an exception.
force (bool) – Delete any jobs associated with each item.
Examples
Delete sources by id:
>>> from cognite.client import CogniteClient, AsyncCogniteClient >>> client = CogniteClient() >>> # async_client = AsyncCogniteClient() # another option >>> client.hosted_extractors.sources.delete(["myMQTTSource", "MyEventHubSource"])