You can take a look at the discussion (half way down the blue box) on this link:
Basically, if you've lived there for four years, the landlord must give you a bit of leeway on wear and tear.
However, the landlord is not required to actually effectuate the repairs in order to deduct from the security deposit.
When did you move out? Under California Civil Code section 1950.5, within 21 calendar days after a tenant moves out, the landlord must either send a full refund of the security deposit, or mail or personally deliver to the tenant an itemized statement that lists the amounts of any deductions from the security deposit and the reasons for the deductions, together with a refund of any amounts not deducted.
A tenant who does not receive a return of the security deposit from the landlord will often need to sue the landlord in small claims court to get the security deposit back. However, the risk is that the landlord will likely countersue the tenant for damages above and beyond what the security deposit covered.
According to the California Supreme Court decision in the case of Granberry v. Islay Investments (1995) 9 Cal.4th 738, 745, after the 21 days have transpired, the landlord loses the right to keep any of the security deposit and must return the entire deposit to the tenant.
Also, if the tenant proves to the court that the landlord acted in "bad faith" in refusing to return your security deposit, the court can order the landlord to pay the tenant the amount of the improperly withheld deposit, plus up to twice the amount of the security deposit as a "bad faith" penalty. (Civil Code Section 1950.5(l).)
Frank W. Chen has been licensed to practice law in California since 1988. The information presented here is general in nature and is not intended, nor should be construed, as legal advice. This posting does not create any attorney-client relationship with the author. For specific advice about your particular situation, consult your own attorney.