class_docstr: A dict-like wrapper around :class:`Client` dataset methods.
  
  Parameters
  ----------
  client : distributed.client.Client
class_docstr_tok: ["A","dict-like","wrapper","around",":","class",":","`","Client","`","dataset","methods",".","Parameters","--","--","--","--","--","client",":","distributed.client.Client"]
code: def __delitem__(self, key):
      if self._client.asynchronous:
          # 'await del obj[key]' is not supported by Python as of 3.8
          raise TypeError(
              "Can't use 'del client.datasets[name]' when client is asynchronous; "
              "please use 'client.unpublish_dataset(name)' instead"
          )
      return self._client.unpublish_dataset(key)
  
file_path: distributed/distributed/publish.py
imports: from __future__ import annotations
  from collections.abc import MutableMapping
  from dask.utils import stringify
  from distributed.utils import log_errors
label_desc: Use image node_id 4 for calling the Datasets obj's underlying member method code with example usage: obj.__delitem__(key) and returns: self