Small refactor of batchDelete function so it works for poth parameters and prevelances