clear old doc