Depends on the lease.
Is it month to month?
The contract usually spells it out. Beyond that contact an attorney if you want to break the lease.
Harold Sharpe - Broker
So Cal Homes Realty
California Department of Real Estate Broker License # 01312992
I'm not a lawyer, so what follows is not legal advice. For that, you need a lawyer.
Check the lease. Under what conditions can you evict your tenants? I'd guess non-payment of rent. Not keeping the property in habitable condition. Committing illegal acts. Are your tenants guilty of any of those? If so, of course you can begin eviction procedures.
And check the lease regarding the expiration of the lease. If the lease expires on, say, January 1, then you simply don't renew the lease. You're not evicting them. The lease is terminating and you're not renewing it.
If the tenants are on a month-to-month arrangement, then you should be able to give them 30 days notice. That's not an eviction; you're simply terminating the arrangement pursuant to the terms of the lease.
However, it'd be advisable to consult with a lawyer in any case just to make sure that you're in compliance with all state and local regulations. Various cities and counties have their own regulations on top of state regulations--usually designed to protect the tenant. You'll want to make sure you're fully in compliance.
Finally, would it be possible to negotiate a lower rent on your San Francisco apartment? And/or (in compliance with the terms of your lease in Daly City) increase your rental income?
Hope that helps.
Your question is a legal one and without knowing more, you should consult with an attorney. A good landlord/tenant attorney is Richard Kelly in RWC.