Delete /public or not?

Hi all, what‘s your opinion: does it make sense to delete /public everytime before running hugo or doesn’t it matter? My question isn’t related to version control as related topics here but simply refers to ‚starting fresh on every build or not‘.

Thanks

It is advisable to do that to avoid stale files being left in your public directory.

3 Likes

Or run hugo with the “cleanDestinationDir” attribute.

hugo --cleanDestinationDir

3 Likes

But beware of the TLDR in this comment. That’s why I personally prefer deleting the folder manually.

3 Likes

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.