Skip to content
Discussion options

You must be logged in to vote

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 and jq:

$ 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 again to issue a DELETE request:

$ gh api -X DELETE <asset-url>

Replies: 1 comment 5 replies

Comment options

You must be logged in to vote
5 replies
@luckman212
Comment options

@Manuthor
Comment options

@mislav
Comment options

@Biswa96
Comment options

@mislav
Comment options

Answer selected by mislav
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
4 participants