You Cannot remove Batches with Transactions, first you to remove the transactions belongs to that particular Batch then only u can remove. You can remove empty batches without having Transactions using a function