How do I clear the build cache?

Issue

You want to clear the build cache for your app.

Resolution

Clear The Build Cache

You can clear the build cache for an app by using the Heroku Builds plugin:

First install the plugin:

heroku plugins:install heroku-builds

Then use the following command to clear the cache:

heroku builds:cache:purge -a example-app

The cache will be rebuilt on the next deploy. If you do not have any new code to deploy, you can push an empty commit.

$ git commit --allow-empty -m "Purge cache"
$ git push heroku master

Where example-app is replaced by the name of the app you want to clear the cache for.

Ask on Stack Overflow

Engage with a community of passionate experts to get the answers you need

Ask on Stack Overflow

Heroku Support

Create a support ticket and our support experts will get back to you

Contact Heroku Support