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.
-
1Useful question, thank you. – King-Wizard Sep 05 '15 at 13:38
3 Answers
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.

- 61,481
- 12
- 97
- 110
-
Actually it's a beta release and it's incorrectly versioned, so it's important to remove it. Thanks for your answer. – Rafael Veronezi Jun 26 '15 at 21:37
-
I wanted to delete some sensitive information in podspec file in CocoaPods/spec repo , please help in achieving it. – vinay Feb 02 '22 at 09:18
You can now delete specific versions of a Pod to correct an accidental push.
pod trunk delete PODNAME VERSION
You can also deprecate an entire Pod and all versions
pod trunk deprecate PODNAME
Reference: https://github.com/CocoaPods/cocoapods-trunk/blob/master/CHANGELOG.md#100beta1-2015-12-30
Note that you need to be using pod version 1.0.0.beta.2
or greater. Run pod --version
to check. To install the beta, run sudo gem install pod -v 1.0.0.beta.3
(get the latest version from the ChangeLog)

- 16,089
- 7
- 81
- 124
This is what worked for me:
- On GitHub, navigate to the main page of the repository.
- Under your repository name, click Releases.
- On the Releases page, to the right of the release you want to delete, click Edit.
- Delete

- 20,717
- 43
- 112
- 130

- 7,282
- 12
- 79
- 139