code: def remove_task_db(self, fid, force=False):
          '''将任务从数据库中删除'''
          self.remove_slice_db(fid)
          sql = 'DELETE FROM upload WHERE fid=?'
          self.cursor.execute(sql, [fid, ])
          self.check_commit(force=forcef remove_task_db(self, fid, force=False):
          '''将任务从数据库中删除'''
          self.remove_slice_db(fid)
          sql = 'DELETE FROM upload WHERE fid=?'
          self.cursor.execute(sql, [fid, ])
          self.check_commit(force=force)
docs: 将任务从数据库中删除