docstr: Deletes a dataset on the Lightly Platform.
  
  Args:
      dataset_id:
          The ID of the dataset to be deleted.
  
  Examples:
      >>> client = ApiWorkflowClient(token="MY_AWESOME_TOKEN")
      >>> client.create_dataset("your-dataset-name", dataset_type=DatasetType.IMAGES)
      >>> dataset_id = client.dataset_id
      >>> client.dataset_exists(dataset_id=dataset_id)
      True
      >>>
      >>> # Delete the dataset
      >>> client.delete_dataset_by_id(dataset_id=dataset_id)
      >>> client.dataset_exists(dataset_id=dataset_id)
      False
docstr_tok: ["Deletes","a","dataset","on","the","Lightly","Platform",".","Args",":","dataset_id",":","The","ID","of","the","dataset","to","be","deleted",".","Examples",":",">",">",">","client","=","ApiWorkflowClient","(","token=","''","MY_AWESOME_TOKEN","''",")",">",">",">","client.create_dataset","(","``","your-dataset-name","''",",","dataset_type=DatasetType.IMAGES",")",">",">",">","dataset_id","=","client.dataset_id",">",">",">","client.dataset_exists","(","dataset_id=dataset_id",")","True",">",">",">",">",">",">","#","Delete","the","dataset",">",">",">","client.delete_dataset_by_id","(","dataset_id=dataset_id",")",">",">",">","client.dataset_exists","(","dataset_id=dataset_id",")","False"]
code: def delete_dataset_by_id(self, dataset_id: str) -> None:
      """Deletes a dataset on the Lightly Platform.
  
      Args:
          dataset_id:
              The ID of the dataset to be deleted.
  
      Examples:
          >>> client = ApiWorkflowClient(token="MY_AWESOME_TOKEN")
          >>> client.create_dataset("your-dataset-name", dataset_type=DatasetType.IMAGES)
          >>> dataset_id = client.dataset_id
          >>> client.dataset_exists(dataset_id=dataset_id)
          True
          >>>
          >>> # Delete the dataset
          >>> client.delete_dataset_by_id(dataset_id=dataset_id)
          >>> client.dataset_exists(dataset_id=dataset_id)
          False
      """
      self._datasets_api.delete_dataset_by_id(dataset_id=dataset_id)
      del self._dataset_id
  
imports: import warnings
  from itertools import chain
  from typing import Iterator, List, Optional, Set
  from lightly.api import utils
  from lightly.openapi_generated.swagger_client.models import CreateEntityResponse, DatasetCreateRequest, DatasetData, DatasetType
  from lightly.openapi_generated.swagger_client.rest import ApiException
label_desc: Use image node_id 14 for calling the _DatasetsMixin obj's underlying member method code with example usage: obj.delete_dataset_by_id(dataset_id) without return types