how do i clean my hamsters cage?

i know this may be a stupid question, but i genuinely have no idea how. this is my first pet and i don’t wanna do it the wrong way. i was doing some research and google says to not spoil all their bedding cause it can make my hamster upset, but my hamster uses the bathroom everywhere so all of his bedding is dirty. i’ve had him for a week and the cage doesn’t smell too great. please let me know :)