Whenever the cache is cleared in my Symfony project, either manually or e.g. via composer update, the public assets folder web/bundles/app is deleted.
I've got no idea why this is, it never happened on any of my previous Symfony projects (only a couple, but still). Google returns absolutely nothing, which I find really strange. I've asked a friend of mine that's been working with Symfony for a few years and he told me he's never seen that happen before.
I'm sorry I don't provide any code for this question, but I have literally no idea where the problem might come from. I'll update this with code requested in the comments if needed.