Suction the carpet with the vacuum cleaner thoroughly and remove hair and lint.
If necessary, you can put up stubborn stains with vinegar, lemon juice or a stain remover.
Put the carpet in the washing machine and wash it after care label or according to the manufacturer's instructions. A large laundry bag by Rug Cleaning NY allows a particularly gentle washing.