Skip to content

Commit 367eb7e

Browse files
authored
Merge pull request #43 from dokku/handle-force
fix: set force=true when DOKKU_APPS_FORCE_DELETE=1
2 parents 1b2a82a + 8bddc46 commit 367eb7e

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

commands/destroy.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -186,6 +186,10 @@ func (c *DestroyCommand) Run(args []string) int {
186186
return 1
187187
}
188188

189+
if os.Getenv("DOKKU_APPS_FORCE_DELETE") == "1" {
190+
c.force = true
191+
}
192+
189193
// if !c.force, ask for confirmation
190194
if !c.force {
191195
err := common.AskForDestructiveConfirmation(serviceName, fmt.Sprintf("%s service", datastoreType))

0 commit comments

Comments
 (0)