# Trying to delete a builder app returns "500: Server error"

**URL:** <https://community.fly.io/t/trying-to-delete-a-builder-app-returns-500-server-error/2672>\
**Category:** General\
**Created:** [September 30, 2021, 2:29pm UTC](https://community.fly.io/t/trying-to-delete-a-builder-app-returns-500-server-error/2672 "2021-09-30T14:29:41Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![mad](https://sea1.discourse-cdn.com/fly1/user_avatar/community.fly.io/mad/32/1191_2.png) [@mad](https://community.fly.io/u/mad)\
**Post date:** [September 30, 2021, 2:29pm UTC](https://community.fly.io/t/trying-to-delete-a-builder-app-returns-500-server-error/2672/1 "2021-09-30T14:29:41Z")

</div>

Hello !  
I tried from the web interface to delete the builder app, it failed with error 500.  
I also tried to delete with fly command, here’s the output:

```auto
mad@dev > LOG_LEVEL=debug flyctl destroy fly-builder-restless-dawn-9023
DEBUG Loaded flyctl config from/home/mad/.fly/config.yml
DEBUG Working Directory: /home/mad/code/elixir/project
DEBUG App Config File: 
Destroying an app is not reversible.
? Destroy app fly-builder-restless-dawn-9023? Yes
DEBUG --> POST https://api.fly.io/graphql {{"query":"mutation($appId: ID!) { deleteApp(appId: $appId) { organization { id } } }","variables":{"appId":"fly-builder-restless-dawn-9023"}}
}
DEBUG <-- 500 https://api.fly.io/graphql (4.54s) {"status":500,"error":"Internal Server Error"}
Destroyed app fly-builder-restless-dawn-9023

```

---

<div class="post-metadata">

**Author:** ![kurt](https://sea1.discourse-cdn.com/fly1/user_avatar/community.fly.io/kurt/32/43757_2.png) [@kurt](https://community.fly.io/u/kurt)\
**Post date:** [September 30, 2021, 2:39pm UTC](https://community.fly.io/t/trying-to-delete-a-builder-app-returns-500-server-error/2672/2 "2021-09-30T14:39:45Z")

</div>

Well that’s a pain. There’s a bug that’s entirely unrelated to your builder causing that problem. The fix is rolling out now, I went ahead and deleted your builder for you.

---

<div class="post-metadata">

**Author:** ![mad](https://sea1.discourse-cdn.com/fly1/user_avatar/community.fly.io/mad/32/1191_2.png) [@mad](https://community.fly.io/u/mad)\
**Post date:** [September 30, 2021, 2:42pm UTC](https://community.fly.io/t/trying-to-delete-a-builder-app-returns-500-server-error/2672/3 "2021-09-30T14:42:11Z")

</div>

Thank you @kurt !

The main reason for me to delete it was that it does not pick the latest version of my recently pushed docker image, is there a way to force the build to renew that cache ?

---

<div class="post-metadata">

**Author:** ![kurt](https://sea1.discourse-cdn.com/fly1/user_avatar/community.fly.io/kurt/32/43757_2.png) [@kurt](https://community.fly.io/u/kurt)\
**Post date:** [September 30, 2021, 3:08pm UTC](https://community.fly.io/t/trying-to-delete-a-builder-app-returns-500-server-error/2672/4 "2021-09-30T15:08:14Z")

</div>

Was this an image you pushed to Docker hub or somewhere else? And are you referencing it with a tag in a build?

---

<div class="post-metadata">

**Author:** ![mad](https://sea1.discourse-cdn.com/fly1/user_avatar/community.fly.io/mad/32/1191_2.png) [@mad](https://community.fly.io/u/mad)\
**Post date:** [September 30, 2021, 4:55pm UTC](https://community.fly.io/t/trying-to-delete-a-builder-app-returns-500-server-error/2672/5 "2021-09-30T16:55:53Z")

</div>

Yes it’s an image pushed to docker hub, the image is referenced as :latest in my docker build file and the image have a `ENV REFRESHED_AT=2021-09-30` declared.

---

<div class="post-metadata">

**Author:** ![michael](https://sea1.discourse-cdn.com/fly1/user_avatar/community.fly.io/michael/32/16_2.png) [@michael](https://community.fly.io/u/michael)\
**Post date:** [September 30, 2021, 4:57pm UTC](https://community.fly.io/t/trying-to-delete-a-builder-app-returns-500-server-error/2672/6 "2021-09-30T16:57:31Z")

</div>

`:latest` is trouble for this reason, but you can use the `--no-cache` flag on `flyctl deploy` to build from scratch. Sounds like it might help.

---

<div class="post-metadata">

**Author:** ![mad](https://sea1.discourse-cdn.com/fly1/user_avatar/community.fly.io/mad/32/1191_2.png) [@mad](https://community.fly.io/u/mad)\
**Post date:** [September 30, 2021, 4:59pm UTC](https://community.fly.io/t/trying-to-delete-a-builder-app-returns-500-server-error/2672/7 "2021-09-30T16:59:34Z")

</div>

Thank you @michael !  
I’ll try that `--no-cache` flag next time I notice that !
