option to delete associated volumes when removing a stack (#655)
This commit is contained in:
4 files changed
+39
-18
No files matched your search
@@ -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
|
||||
|
||||
Reference in new issue
Block a user