delete and commit