simplify DeleteService.php

This commit is contained in:
ayntk-ai 2024-08-09 19:22:14 +02:00
parent 1cfddfd529
commit a4bb87d13b
No known key found for this signature in database

View file

@ -50,11 +50,7 @@ public function handle(Service $service, bool $deleteConfigurations, bool $delet
$service->delete_connected_networks($service->uuid);
}
$commands[] = "docker rm -f $service->uuid";
// Executing remaining commands
instant_remote_process($commands, $server, false);
instant_remote_process(["docker rm -f $service->uuid"], $server, throwError: false);
} catch (\Exception $e) {
throw new \Exception($e->getMessage());
} finally {