I keep a variety of different species, mostly the ones that eat and poop weekly. That means I pick up poop when I see it, once a week I look for poop that I missed and clean water bowl, and at minimum every 3-4 weeks I clean everything out (substrate replaced, vinegar/soap solution to wipe away the stains and dirt, bleach solution (Very diluted) to disinfect and leave on for 15 min, wipe with wet rag, leave for another 15-30 min to dry, then manually dry with another rag of what's left. I also use a brush to scrub the enclosure, especially the corners.
A smaller tank will require more cleaning. A bigger tank with a snake that's fasting/not pooping or not as much can wait about 6-8 weeks depending on whether or not it peed at all or by smell. I have heard some people don't clean out everything for 4-6 months.