Take (Someone) to the Cleaners

What does the idiom “Take (Someone) to the Cleaners” mean?

Definition:

1) Swindle; 2) defeat badly

For example:

“1) Be careful when visiting foreign cities—you won’t be aware of the con artists’ tricks, and they’ll take you to the cleaners. 2) It was predicted to be a close game, but we took the other team to the cleaners.”