Removing Versions from CocoaPods Specs Repo

Rafael Veronezi picture Rafael Veronezi · Jun 25, 2015 · Viewed 9.4k times · Source

I've just published a Beta version of a Pod in the Specs Repo, using pod trunk push. I would like to know if is there any way of removing this version Spec from the Spec Repo. I didn't find any way of doing this via the pod command.

Answer

Keith Smiley picture Keith Smiley · Jun 25, 2015

CocoaPods now provides a CLI for deleting pods, it can be done with:

pod trunk delete PODNAME VERSION

Original answer:

Removing specs is highly discouraged. If you push a spec intending to remove it later you shouldn't push it in the first place. This is because if any users are using your spec as soon as you remove it their project will break. If this was an accident you can submit a pull request to the specs repo removing your version. Also worth noting after removing this version you can never again push a spec with the same version number.