Officials ordered thousands of operations to sweep homeless camps in San Francisco and San Jose over the last year.