Deductions cannot include normal wear and tear essentially a landlord would have to sue a tenant as a separate matter if they did not pay for routine carpet cleaning required by the lease.
Carpet cleaning charges landlord.
When landlords should charge a tenant for dirty carpets if the carpet in a rental property is excessively dirty or damaged the landlord can deduct the cost from the security deposit.
For example if a tenant left the carpet stained dirty and or ripped then the carpet would be damaged beyond normal wear and tear and the landlord could deduct carpet cleaning costs from the security deposit.
The amount that a landlord can charge for cleaning a unit depends on the state the unit was rented out in the state the unit was returned in and the general rules of wear and tear.
A landlord can charge for cleaning if the carpet is excessively dirty and or damaged.
After you move out of an apartment a landlord might withhold money from your security deposit for professional carpet cleaning that charge may be fair if you left the carpet in worse shape.
However if a tenant left the carpet clean with only signs of normal wear and tear the landlord could not charge for carpet cleaning.
Any carpet cleaning charges they collect in advance must be treated as part of a security deposit which must be subject to a refund.
Also the lease agreement may stipulate that the tenants handle the carpet cleaning before they vacate the property.