I am using SaveMDIState and LoadMDIState to have documents from the last session, load on starting the next session.

I cannot see any way to clear the previously saved state other than manually deleting the relevant registry keys.

Does anyone know if there is a "proper" way to do this?