I did this recently. I had changed my body shape after having kids.
I divided my wardrobe into seasons. My summer only items live in a case for 6 months, as do my winter only items. These go at the right of my wardrobe when they are “in season”
Then, I tried everything on, and anything that didn’t fit well got sold on vinted.
Then, I took out all my occasion wear and put it in the suitcase too.
Then, I monitored for 6 months. Every time I wore something, I hung it back up on the left of my wardrobe with the hanger the “wrong” way.
Anything I didn’t wear for 6 months got sold.
I then looked at what I had and tried to combine items to make a capsule wardrobe. Anything that didn’t fit in with multiple items was sold, unless it was something which was largely worn alone (eg summer dresses!)
Then, I filled the gaps on vinted.
It’s still a work in progress. There are outfits I don’t love, but look okay. Everything fits and matches. I’m gradually replacing those over time.