code: def remove_hash_prefix_indices(self, threat_list, indices):
          batch_size = 40
          q = '''DELETE FROM hash_prefix
                  WHERE threat_type=? AND platform_type=? AND threat_entry_type=? AND value IN ({})
          '''
          prefixes_to_remove = self.get_hash_prefix_values_to_remove(threat_list, indices)
          with self.get_cursor() as dbc:
              for i in range(0, len(prefixes_to_remove), batch_size):
                  remove_batch = prefixes_to_remove[i:(i + batch_size)]
                  params = [
                      threat_list.threat_type,
                      threat_list.platform_type,
                      threat_list.threat_entry_type
                  ] + [sqlite3.Binary(b) for b in remove_batch]
                  dbc.execute(q.format(','.join(['?'] * len(remove_batch))), params)