change script to be able to delete multiple records