def cloud_delete_task(cookie, tokens, task_id):
url = '<STR_LIT>'.join([<EOL>const.PAN_URL,<EOL>'<STR_LIT>',<EOL>'<STR_LIT>', tokens['<STR_LIT>'],<EOL>'<STR_LIT>', str(task_id),<EOL>'<STR_LIT>',<EOL>'<STR_LIT>', util.timestamp(),<EOL>'<STR_LIT>',<EOL>])<EOL>req = net.urlopen(url, headers={'<STR_LIT>': cookie.header_output()})<EOL>if req:<EOL><INDENT>content = req.data<EOL>return json.loads(content.decode())<EOL><DEDENT>else:<EOL><INDENT>return None<EOL><DEDENT>
删除一个离线下载任务, 不管这个任务是否已完成下载.

    同时还会把它从下载列表中删除.