A non-rent paying tenant must be first served with a three day notice to pay rent or quit and a Fair Debt Collections Practices Act notice. If the tenant does not pay, you can file an unlawful detainer (UD) action in Superior Court. A UD is a type of expedited law suit, but it will still take from 2 -3 months to evict if the tenant fights it all the way through a trial. The vast majority of these types of cases settle well before trial, but often with the tenant leaving and you not recoverying your unpaid rent. That's because most tenants who are not paying rent do so because they have no money. It will make little sense spending money on an attorney to evict at trial when you will never recover the attorney's fees you expend.
It is possible to do an eviction yourself, even in San Francisco, but it is not easy. There are books, but you have to be very careful with all filings and notices, or you will lose the case. It is recommended that you hire an attorney to do the eviction, but you can take that advice with a grain of salt coming from me.
Jeffery P. Woo, Esq.
Sedgwick, Detert, Moran & Arnold LLP
Complex Rental Housing Group