Essex appears to be emptying the lofts of the longtime tenants in order to immediately re-rent the units at today’s hefty market rates... But what Essex is doing is legal under both San Francisco’s strict housing rules and state law, said Supervisor Malia Cohen, whose district includes Potrero Hill.