Created
October 25, 2019 05:26
-
-
Save agoldis/f49b5bc7b6af92155449a7e455f9ac19 to your computer and use it in GitHub Desktop.
Github - delete private package
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# get version id | |
query($name: String!, $owner: String!) { | |
repository(name: $name, owner: $owner) { | |
id | |
name | |
registryPackages(first: 10) { | |
nodes { | |
versions(first: 10) { | |
nodes{ | |
id | |
version | |
} | |
} | |
name | |
id | |
} | |
} | |
} | |
} | |
# 1.5 Set graphql client: Accept=application/vnd.github.package-deletes-preview+json HTTP header | |
# 2 - delete the version | |
mutation($packageId: ID!) { | |
deletePackageVersion(input: {packageVersionId: $packageId }) { | |
clientMutationId | |
success | |
} | |
} |
👍🏻
Delete this package
Please delete at my (owners) request #
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Thank you for sharing @agoldis!