If you have a carpet that’s been stained with laundry detergent, there are a few things you can do to get the detergent out. You can try using a vacuum cleaner with a beater bar, or you can use boiling water and soap. ..