In California, as long as you give 30 days notice of your intent to move, your landlord can only deduct the costs of returning the apartment to the same condition it was in when you moved in.