pp lake clean
Runs on both sides.
- On your machine it runs
lake cleanwith the arguments you gave. If Lake is not installed locally and you passed no package names, it removes.lake/builddirectly. - In the cloud it cleans your workspace.
What a bare lake clean cleans in the cloud
Locally, lake clean with no arguments deletes the build directory of every
package in the workspace, Mathlib included, which is why it is usually followed
by a long lake exe cache get.
In the cloud that would be pure loss: prebuilt Mathlib would be deleted from the
sandbox and the next build would start compiling Mathlib from source. So a bare
pp lake clean is narrowed to the packages whose build outputs actually live in
your workspace:
- your project’s own package, and
- any dependency that is not part of the prebuilt environment.
--verbose you can see the
narrowing:
Naming packages
If you name packages, the command runs exactly as written on both sides:pp lake cache clean
Also runs on both sides. It clears Lake’s artifact cache locally and the
workspace’s copy of it in the cloud.
pp workspace reset
Deletes the whole cloud workspace: the synced copy of your sources, your build
outputs, and every dependency Lake cloned into it.
pp workspace reset KEY targets another workspace from
pp workspace list. Local files are never touched.
Which one do I want?
What cleaning never does
- It never deletes a prebuilt environment, and never leaves you compiling Mathlib from source.
- It never touches your source files.
- It never deletes a workspace other than the one you named.