read:packages and delete:packages scopes.package_type belongs to a GitHub Packages registry that only supports repository-scoped permissions, your token must also include the repo scope. For the list of GitHub Packages registries that only support repository-scoped permissions, see "About permissions for GitHub Packages."curl --location --request DELETE 'https://api.github.com/user/packages//'{}