Skip to content

An open-source, self-hostable PaaS alternative to Vercel, Heroku & Netlify that lets you easily deploy static sites, databases, full-stack applications and 360+ one-click services on your own servers.

simplify DeleteService.php

ayntk-aia4bb87d13b5a
diff --git a/app/Actions/Service/DeleteService.php b/app/Actions/Service/DeleteService.php
index 1862009933..238e6b9545 100644
--- a/app/Actions/Service/DeleteService.php
+++ b/app/Actions/Service/DeleteService.php
@@ -50,11 +50,7 @@ class DeleteService
$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 {