How to delete multiple records on the bases of secondary index

how to delete multiple records on the bases of secondary index

You’d attach a record UDF to the query, such that the lua function is called on every record matched by the predicate.

In the Python client you’d do so using aerospike.Client.query_apply. The UDF function would be something like:

function del_rec(rec)
  aerospike:remove(rec)
end