For instance, you might vacuum the edges once a week with your crevice attachment. The crevice attachment looks like a thin rectangular slit, which might be cut at an angle.

Pay special attention to areas that are visibly dirty. Make sure you suck up all visible dirt and debris before you move on to the next spot.

Keep in mind that dirt and debris get trapped in your carpet edges and may be present even if you can’t see them.

Follow all of the directions on your carpet cleaner to maximize your results. For a stubborn stain, apply more cleaner as needed to remove the stain. Use a white cloth because dyes from paper towels or rags can bleed into the carpet.

If you don’t have a crevice attachment, use a handheld vacuum cleaner. Your edges will likely still look dirty after you vacuum. However, this will remove the loose debris so it doesn’t clump up or stick to your scrub brush.

As another option, use a white rag to scrub the edges. However, be careful because you could accidentally rub against a nail or staple.

Your carpet edges may still look dirty, and that’s okay!

Read and follow all of the directions on your carpet cleaner.

You can also use a dampened white rag to scrub your carpet edges. However, be careful because there may be nails or staples along the carpet edge. Dirt and debris will start to come out of your carpet fibers as you scrub, so you’ll likely notice that the carpet is starting to look cleaner.

If you still have dark lines around your edges, apply more carpet cleaner and scrub the edges again. If this doesn’t remove all of the staining, you may need to use a carpet cleaner to get your edges clean.

You can buy or rent a carpet cleaner from your local home improvement store. For instance, you might try a Rug Doctor. The carpet cleaner will push the cleaning fluid down into the carpet and will suck it back up. Use the carpet cleaning solution that’s made for your device.