sudo gem install cocoapods-deintegrate cocoapods-clean

C++
sudo gem install cocoapods-deintegrate
sudo gem install cocoapods-clean
pod deintegrate
pod clean
rm Podfile
Source

Also in C++: