5

I have created a couple test cocoa pods that are public I need to delete these not just from my computer but from the public pod list? Is there a way to remove the trunk?

John Dutchak
  • 53
  • 1
  • 3

2 Answers2

7

In order to complete the @Keith Smiley's response, please find some other important details below:

Can I submit a pull request if...

Q: I want to update my Pod to a new version?

A: No, this is no longer the appropriate way to update your Pod. Pod updates must be uploaded using pod trunk push [NAME.podspec].

Q: I made a mistake in a Podspec I've just pushed?

A: No. The quickest way to get this fixed is to edit your .podspec, bump the version number and pod trunk push [NAME.podspec].

Q: I've deleted this Pod?

A: People are relying on your library, you should apply the deprecated flag via a pull request to all versions of your library. Removal of Podspecs should be avoided as much as possible. This is to ensure systems built around the CocoaPods ecosystem are kept in sync.

Q: No one needs that pod, or is going to ever download it... why can't I just delete it?

A: Our policy is to only perma-delete pods that really need it, such as Pods that may contain passwords, malicious/harmful code, etc. Deprecating a pod effectively removes it from being found and will do the trick in 99% percent of situations.

Q: But what if..

A: Chances are, no.

(Sources of this answer: link 1, link 2)

King-Wizard
  • 15,628
  • 6
  • 82
  • 76
  • What is the best way to add the deprecated flag if the specs repository is no longer accepting PRs, since they have moved to trunk. Is it even possible to deprecate now? – arc4randall Jan 15 '16 at 16:23
  • Sorry, but I have no idea, you should ask that question to @ Keith Smiley above, commenting his answer. I think he could know the answer to your question. – King-Wizard Jan 16 '16 at 22:59
  • @King-Wizard, Will deprecating a pod will allow any other person to publish a pod with that same name? If not, what's the procedure to completely remove pod so that any other person can publish pod with same name? – Abu Bäkr Jun 22 '21 at 06:08
1

To delete these specs entirely you'll need to submit a pull request to the specs repo removing the affected files. If you want to also remove them from the trunk database, you'll have to submit an issue on the trunk repo explaining the situation.

Keith Smiley
  • 61,481
  • 12
  • 97
  • 110