option to delete associated volumes when removing a stack (#655)

This commit is contained in:
jarek committed 2026-04-19 09:39:42 +02:00
1 parent 0af1ee6eb2
commit b8f06426e3
4 files changed
+39 -18

No files matched your search

+3 -1
View File
@@ -1982,7 +1982,8 @@ export async function downStack(
export async function removeStack(
stackName: string,
envId?: number | null,
force = false
force = false,
removeVolumes = false
): Promise<StackOperationResult> {
return withStackLock(stackName, async () => {
// Get compose file (may not exist for external stacks)
@@ -2000,6 +2001,7 @@ export async function removeStack(
{
stackName,
envId,
removeVolumes,
workingDir: composeResult.stackDir,
composePath: composeResult.composePath ?? undefined,
envPath: composeResult.envPath ?? undefined