code: def delete_dataset(self, dataset_key):
          
          owner_id, dataset_id = parse_dataset_key(dataset_key)
          try:
              self._datasets_api.delete_dataset(owner_id, dataset_id)
          except _swagger.rest.ApiException as e:
              raise RestApiError(cause=e)
docs: Deletes a dataset and all associated data
  
          :params dataset_key: Dataset identifier, in the form of owner/id
          :type dataset_key: str
          :raises RestApiException: If a server error occurs
  
          Examples
          --------
          >>> import datadotworld as dw
          >>> api_client = dw.api_client()
          >>> api_client.delete_dataset(
          ...     'username/dataset')  # doctest: +SKIP