How do I clear the build cache?


You want to clear the build cache for your app.


You can clear the build cache for an app using the following commands:

$ heroku plugins:install heroku-builds
$ heroku builds:cache:purge -a appname

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 appname 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
Terms of Service Privacy Cookies © 2021