diff --git a/src/client/opamCommands.ml b/src/client/opamCommands.ml index c86d987f9c8..0120d95c714 100644 --- a/src/client/opamCommands.ml +++ b/src/client/opamCommands.ml @@ -4096,6 +4096,7 @@ let clean cli = cleandir (OpamPath.Switch.build_dir root sw); cleandir (OpamPath.Switch.remove_dir root sw); cleandir (OpamPath.Switch.extra_files_dir root sw); + cleandir (OpamPath.Switch.last_env root sw); let pinning_overlay_dirs = List.map (fun nv -> OpamPath.Switch.Overlay.package root sw nv.name)