You can only be sure that your carpet has been fully cleaned if the water used is clean. In order to keep carpets clean, they should never be walked on in street shoes, and they should be vacuumed at least once a week.