corrected the delete CRUD method on transaction