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
Install the plugin using:
heroku plugins:install heroku-repo
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: