Divestment pushed South Africa to abolish apartheid.
Divesting from SA meant smaller tax base, fewer jobs and a fall from international prominence.
Divesting from a company/industry means that the stock price may fall. Assuming that the actual profitability of the company remains unchanged all divesting did was make the stock a better buy.