This commit is contained in:
2025-12-05 10:39:09 +01:00
parent 269292a8d3
commit bc64e5d023
2 changed files with 6 additions and 7 deletions

View File

@@ -858,13 +858,11 @@ class Portainer:
self._resolve_endpoint(endpoint_id)
endpoint_id = self.endpoint_id
if stack == "all":
return self._delete_all_stacks(endpoint_id)
else:
for s in stack:
print(f" >> Deleting stack {s} from endpoint {self.endpoint_name}")
stack_id = self._resolve_stack_id(s, endpoint_id)
self._delete_single_stack(stack_id, endpoint_id)
return "Done"