removed duplicated code
deleting a transaction rolls it back