Ensures the deletions are wrapped in a transaction - for performance and to mitigate db corruption if one of the deletes fails.