The California Tenant Protection Act (CTPA) restricts a landlord's ability to evict a tenant.
The act requires a just cause to evict a tenant who has occupied a property for >12-mo.
A seller wishing to sell a property free of tenants should demonstrate good faith intent to withdraw a home from the rental market.
They can try selling their home to a buyer who intends to occupy the property long-term and does not intend to rent it out.