Obviously you need to keep things clean and food put away, but the less obvious thing is that you need to eliminate their access to water. That alone will almost resolve the problem. They can't live without water. 2 weeks without access and they'll all die, or migrate away. So fix any leaks, don't leave water dishes out, and dry your sinks and shower after use. Create an inhospitable environment and they stop using it as a home. Of course none of this matters at all if you live in an apartment and they're coming over through the walls from the neighbor's house.