def METHOD_NAME(self, module, modelMgr, data):
    self.stderr.write("Unloading...\n")
    for row in data:
        try:
            if module == 'ip':
                modelMgr.get(user__username=row[0], ip_addr=row[1]).delete()
            elif module == 'dns':
                modelMgr.get(user__username=row[0], dns_name=row[1]).delete()
        # pylint: disable=broad-except
        except Exception as e:
            self.stderr.write("Error for %s: %s\n" % (row, e))