committing before deleting locally