Is there any way to generate without deleted/unused page?

For exmaple, suppose that content/foo bar/index.md(title: foo-bar) is statically generated in public folder as foo-bar/index.html. After two days, if i delete content/foo bar/index.md, then foo-bar/index.html should be deleted automatically at least when i send a hugo command again. (‘automatically’ just means ‘not manually’. Not about monitoring.)

I thought --gc can be a solution, but it didn’t work. Of course i admit that i didn’t understand above document. Totally misreading. How can i find a solution?

hugo --cleanDestinationDir : Basic Usage | Hugo

Thanks!

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