implemented delete_batch method