Safeguarded the transaction, deleting records