Arshad Mehmood

Search the blog

    How to delete files from a Heroku app repository

    Tutorial1 min read

    It’s frustrating when you push some code to Heroku and some files are just not deleted and Heroku serves you an old version of your code with a mix of new files. Well, worry no more! You can simply delete the old files on your Heroku app using this Heroku repo plugin developed by Heroku .

    It’s very easy to use and you can delete or reset your app in just two lines of code.

    Heroku repo plugin

    1. Install the plugin using:

      heroku plugins:install heroku-repo
    2. Reset repo using:

      heroku repo:reset -a appname

    Now your Heroku will be just as new. Push your code and it will be like, you just pushed some code to a new app. Cheers!

    Buy me a cup of coffee with ETH: 0x681a83007bC52C0bF42B41263Dc498f9Ef7af02A

    Discussion

    Join the conversation on GitHub Discussions.