 He did that when he threatened to abandon Twitter headquarters in 2022 after the city of San Francisco said he couldn't install bedrooms in the building. He did take the Tesla headquarters from California to Texas in 2021, ostensibly to escape COVID-19 regulations he described as fascist. Although Texas has much lower taxes than California.