Skip to content

Instantly share code, notes, and snippets.

View bsramin's full-sized avatar
👨‍💻
Optimize the world, bit by bit

Ramin Banihashemi bsramin

👨‍💻
Optimize the world, bit by bit
View GitHub Profile
@bsramin
bsramin / deletePackageVersion.sh
Created April 8, 2020 22:21 — forked from ghorbanzade/deletePackageVersion.sh
registryPackagesForQuery and deletePackageVersion
curl -X POST \
-H "Accept: application/vnd.github.package-deletes-preview+json" \
-H "Authorization: bearer <PERSONAL_ACCESS_TOKEN>" \
-d '{"query":"mutation { deletePackageVersion(input:{packageVersionId:\"<PACKAGE_VERSION>\"}) { success }}"}' \
https://api.github.com/graphql