make things more clear

This commit is contained in:
ayntk-ai
2024-08-27 14:19:37 +02:00
parent 9040f5d2a1
commit 4726676248
5 changed files with 29 additions and 25 deletions

View File

@@ -10,7 +10,7 @@ class DeleteService
{
use AsAction;
public function handle(Service $service, bool $deleteConfigurations, bool $deleteVolumes, bool $deleteImages, bool $deleteConnectedNetworks)
public function handle(Service $service, bool $deleteConfigurations, bool $deleteVolumes, bool $dockerCleanup, bool $deleteConnectedNetworks)
{
try {
$server = data_get($service, 'server');
@@ -69,7 +69,7 @@ class DeleteService
$service->tags()->detach();
$service->forceDelete();
if ($deleteImages) {
if ($dockerCleanup) {
CleanupDocker::run($server, true);
}
}