Skip to content

Commit 5b1dbf2

Browse files
authored
delete not only running app (#169)
1 parent 4da5dbc commit 5b1dbf2

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
funcDeleteApp(ctx context.Context, dockerClient command.Cli, app app.ArduinoApp) error{
899899

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

911905
returnapp.FullPath.RemoveAll()

0 commit comments

Comments
(0)