diff --git a/cli/cli/commands/clean/clean.go b/cli/cli/commands/clean/clean.go index 79238e84d5..34da387113 100644 --- a/cli/cli/commands/clean/clean.go +++ b/cli/cli/commands/clean/clean.go @@ -89,21 +89,8 @@ func run( }, } - executeOnlyIfAllFlagIsEnabled := map[string]bool{ - oldEngineCleaningPhaseTitle: false, - enclavesCleaningPhaseTitle: false, - unusedImagesPhaseTitle: true, - } - phasesWithErrors := []string{} for phaseTitle, cleaningFunc := range cleaningPhaseFunctions { - onlyIfAllFlag, found := executeOnlyIfAllFlagIsEnabled[phaseTitle] - if !found { - return stacktrace.NewError("Couldn't find phase %s in executeOnlyIfAllFlagIsEnabled. This is a bug in Kurtosis", phaseTitle) - } - if onlyIfAllFlag && !shouldCleanAll { - continue - } logrus.Infof("Cleaning %v...", phaseTitle) successfullyRemovedArtifactUuids, removalErrors, err := cleaningFunc() if err != nil {