Student or Learner
"Detergent makes a lot of foam but machine does not rinse away the foam"
can we use rinse away with foam?
... but it's a specific machine, so ... (It's probably a specific detergent as well, but may not be.)
it's an ordinary washing machine which has broken down.