/users/{username}/packages/{package_type}/{package_name}Delete a package for a user
Deletes an entire package for a user. You cannot delete a public package if any version of the package has more than 5,000 downloads. In this scenario, contact GitHub support for further assistance.
If the package_type belongs to a GitHub Packages registry that supports granular permissions, the authenticated user must have admin permissions to the package. For the list of these registries, see "About permissions for GitHub Packages."
OAuth app tokens and personal access tokens (classic) need the read:packages and delete:packages scopes to use this endpoint. For more information, see "About permissions for GitHub Packages."
- RetriesRetries up to 2×, 500ms backoff, 30s timeout.
A 401 is returned: Requires authentication. A 403 is returned: Forbidden. A 404 is returned: Resource not found.
Was this helpful?