Delete a release asset? #3000
Answered
by
mislav
luckman212
asked this question in
Q&A
-
Is it possible to delete an asset via the
|
Beta Was this translation helpful? Give feedback.
Answered by
mislav
Feb 22, 2021
Replies: 1 comment 5 replies
-
No, it's not directly possible to. You may open a feature request if you believe this should be possible via built-in commands. In the meantime, you can achieve this with $ gh api repos/:owner/:repo/releases/tags/v1.0.0 | jq -r '.assets[] | [.name,.url] | @tsv' This will lists assets in a release and their API URL. After choosing which asset to delete, you can use $ gh api -X DELETE <asset-url> |
Beta Was this translation helpful? Give feedback.
5 replies
Answer selected by
mislav
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
No, it's not directly possible to. You may open a feature request if you believe this should be possible via built-in commands.
In the meantime, you can achieve this with
gh api
andjq
:This will lists assets in a release and their API URL. After choosing which asset to delete, you can use
gh api
again to issue a DELETE request: