The UnitOfWork is cleared automatically after a successful call to Commit.
The Clear method only needs to be called if you want to reuse the UnitOfWork. It is not necessary to call it to roll back uncommitted changes--you may simply discard the UnitOfWork.