DELETE/repos/{owner}/{repo}/releases/assets/{asset_id}

Delete a release asset

Deletes a release asset from a repository. Use this operation when you no longer want the asset associated with the repository's release. The authenticated user must have permission to modify the repository.

3 parameters
ownerstringrequired
The account that owns the repository; the name is not case-sensitive.
repostringrequired
The repository name without the `.git` extension; the name is not case-sensitive.
asset_idintegerrequired
The unique identifier of the release asset to delete.

2 status codes
204Returns no response body after the release asset is deleted.
404Returned when the repository or release asset cannot be found.
messagestringoptional
documentation_urlstringoptional
urlstringoptional
statusstringoptional

Error handling

A 404 is returned when the repository or release asset cannot be found. The owner path parameter and repo path parameter identify the repository, and the asset_id path parameter identifies the asset to delete.