Unable to delete packages with no versions

Hi everyone,

I’m not able to delete packages from my repository: GitHub - zwave-js/zwavejs2mqtt: Zwave to Mqtt gateway and Control Panel Web UI. Built using Nodejs, and Vue/Vuetify

Like you see here it shows 3 packages but when you click on one of them only one is shown in the table, the others have no versions and I cannot delete them anyway.

Graphql packages list returns this:

{
    "data": {
        "repository": {
            "packages": {
                "nodes": [
                    {
                        "packageType": "DOCKER",
                        "name": "deleted_***",
                        "id": "***",
                        "versions": {
                            "nodes": []
                        }
                    },
                    {
                        "packageType": "DOCKER",
                        "name": "foo",
                        "id": "***",
                        "versions": {
                            "nodes": []
                        }
                    },
                    {
                        "packageType": "DOCKER",
                        "name": "zwavejs2mqtt",
                        "id": "***",
                        "versions": {
                            "nodes": [
                                {
                                    "id": "***",
                                    "version": "docker-base-layer",
                                    "readme": null
                                }
                            ]
                        }
                    }
                ]
            }
        }
    }
}

Just the last onoe in the array is valid. Cannot find an api for GraphQL to delete a package but just to delete packages version

I haven’t looked at the GraphQL API, but:

https://docs.github.com/en/packages/learn-github-packages/deleting-and-restoring-a-package#deleting-an-entire-package

https://docs.github.com/en/rest/reference/packages#delete-a-package-for-an-organization

Deletes an entire package in an organization. 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.