I created 2 Preview apps using the superfly/fly-pr-review-apps@1.5.0 github action but I’m now unable to delete them.
The two affected apps are: pr-19-frameable-frontend and pr-19-frameable-backend.
I was able to delete all machines and IPs for the two apps and the status doesn’t seem to show anything unusual either:
$ flyctl status -a pr-19-frameable-backend
App
Name = pr-19-frameable-backend
Owner = frameable
Hostname = pr-19-frameable-backend.fly.dev
Image = -
Deleting the apps themselves doesn’t work though, I’ve tried both the cli and the dashboard. Trying to delete the app with the cli and the --debug flag shows the following output, it seems to be the same for both apps as far as I can tell:
$ flyctl apps destroy pr-19-frameable-backend -y --debug
Error: failed to run mutation($appId: ID!) { deleteApp(appId: $appId) { organization { id } } }: server returned a non-200 status code: 500
Stacktrace:
goroutine 1 [running]:
runtime/debug.Stack()
/opt/hostedtoolcache/go/1.24.5/x64/src/runtime/debug/stack.go:26 +0x5e
github.com/superfly/flyctl/internal/cli.printError(0xc000708000, 0xc000825c15, 0xc00023b208, {0x2fbc8a0, 0xc0003edf00})
/home/runner/work/flyctl/flyctl/internal/cli/cli.go:186 +0x669
github.com/superfly/flyctl/internal/cli.Run({0x2fe4bb8?, 0xc0001c8f80?}, 0xc000708000, {0xc00011c1f0, 0x5, 0x5})
/home/runner/work/flyctl/flyctl/internal/cli/cli.go:118 +0xb05
main.run()
/home/runner/work/flyctl/flyctl/main.go:47 +0x150
main.main()
/home/runner/work/flyctl/flyctl/main.go:26 +0x18
I think this issue might be related to this github issue: New machines being created on each push · Issue #74 · superfly/fly-pr-review-apps · GitHub. I tried creating the app from a fly.toml config which had a different primary region from the preview action’s default region which created new machines on every deploy, like the issue says. explicitly setting the region to the same primary region as in the app config solved this issue but I think the app might still be in a bad state.