We always used the "Little Green Machine" carpet cleaner, then rinsed with clean warm water. However, we also used a clean cloth dampened with clothes bleach, but you really need to be careful as the bleach will discolour the carpet of upholstery if you drip, so we moved on to the Green Machine.
Ed