How long should I ignore my dog in order of him knowing I’m upset with him destroying my things?

I feel like this is best form of punishment to make him realise he can’t go around destroying things in my room. I feel like he will learn if I show him I’m upset with him but how long do I need to be like this for?
3 answers 3