def delete(self, dataset):
url = self._get_url('<STR_LIT>'.format(dataset))<EOL>json_data = '<STR_LIT>'<EOL>binary_data = json_data.encode()<EOL>headers = self._get_request_headers()<EOL>req = urllib.request.Request(url, binary_data, headers)<EOL>resp = urllib.request.urlopen(req)   <EOL>str_response = resp.read().decode('<STR_LIT:utf-8>')<EOL>if str_response != '<STR_LIT>' or resp.status < <NUM_LIT:200> or resp.status >= <NUM_LIT>:<EOL><INDENT>msg = '<STR_LIT>'.format(str_response)<EOL>raise ValueError(msg)<EOL><DEDENT>
The method is deleting dataset by it's id