They usually had a spot where they dug a hole for a toilet. If they were wealthy, they might have a separate room with a hole in the floor - often with a seat of some kind, usually made of wood - that they squatted over. It was not a bathroom cuz baths, when taken at all, were taken at a distance from the hole they used as a toilet. And there was no running water in any of them. One exception - the ancient city of Rome had carefully engineered troughs with stone covers with holes, into which they took a dump and/or a leak - and they did have constantly running water to flush the nasty stuff out of town. When they had to wipe, they used a stick, usually with a bit of fabric wound around one end of the stick. The stick was shared by a number of people before being discarded.