Delete or "hide" a (public) package #24788
-
I’m testing the “new” Github Packages feature, currently with Gradle. I succeeded to publish a package but want to delete this test version again. The documentation says deletion is not possible but I delete all linked versions. I did not find an option in the web UI of Github so I tried the API:
However, for this to work I need the ID of the package version. I also did not find this in the web UI of Github so I tried the API again, but am failing:
The API returns:
When I try this via the GraphQL API Explorer:
I receive:
If this is really the “easiest way” to accomplish my task - how can I provide a token to the GraphQL Explorer to be able to fix my query format error which the API reports unspecificly? |
Beta Was this translation helpful? Give feedback.
Replies: 4 comments
-
Hey, You can check package versions with:
But “removing a package from a public registry is not allowed” anyway (I’m having the same problem :/) |
Beta Was this translation helpful? Give feedback.
-
See me answer there for a “workaround” - if this is possible in your case as it comes with some potential problems. In my case the project was relativily fresh created so it was ok. |
Beta Was this translation helpful? Give feedback.
-
Wow @hb0 , it works! haha You’re my hero! |
Beta Was this translation helpful? Give feedback.
-
Please don’t delete anything, because everything can be evidence |
Beta Was this translation helpful? Give feedback.
See me answer there for a “workaround” - if this is possible in your case as it comes with some potential problems. In my case the project was relativily fresh created so it was ok.
https://stackoverflow.com/a/59105581/5815054