Skip to content

Commit 842f232

Browse files
committed
delete not only running app
1 parent 5deb69a commit 842f232

File tree

1 file changed

+3
-9
lines changed

1 file changed

+3
-9
lines changed

internal/orchestrator/orchestrator.go

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -897,15 +897,9 @@ func CloneApp(
897897

898898
func DeleteApp(ctx context.Context, dockerClient command.Cli, app app.ArduinoApp) error {
899899

900-
runningApp, err := getRunningApp(ctx, dockerClient.Client())
901-
if err != nil {
902-
return err
903-
}
904-
if runningApp != nil && runningApp.FullPath.EqualsTo(app.FullPath) {
905-
// We try to remove docker related resources at best effort
906-
for range StopAndDestroyApp(ctx, dockerClient, app) {
907-
// just consume the iterator
908-
}
900+
// We try to remove docker related resources at best effort
901+
for range StopAndDestroyApp(ctx, dockerClient, app) {
902+
// just consume the iterator
909903
}
910904

911905
return app.FullPath.RemoveAll()

0 commit comments

Comments
 (0)