Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update deleting-and-restoring-a-package.md #35742

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,10 @@
## Package deletion and restoration support on {% data variables.product.prodname_dotcom %}

On {% data variables.product.prodname_dotcom %} if you have the required access, you can delete:
* an entire private package
* an entire public package, if there's not more than 5000 downloads of any version of the package
* a specific version of a private package
* a specific version of a public package, if the package version doesn't have more than 5,000 downloads
* An entire private package
* An entire public package, if there's not more than 5000 downloads of any version of the package
* A specific version of a private package
* A specific version of a public package, if the package version doesn't have more than 5,000 downloads

> [!NOTE]
> * You cannot delete a public package if any version of the package has more than 5,000 downloads. In this scenario, contact us through the {% data variables.contact.contact_support_portal %} for further assistance.
Expand All @@ -36,7 +36,7 @@

{% data reusables.package_registry.packages-classic-pat-only %}

{% ifversion packages-rest-api %}

Check warning on line 39 in content/packages/learn-github-packages/deleting-and-restoring-a-package.md

View workflow job for this annotation

GitHub Actions / lint-content

Liquid `ifversion` (and `elsif`) should not always be true

The Liquid ifversion condition 'packages-rest-api' includes all possible versions and will always be true.

You can use the REST API to manage your packages. For more information, see the [AUTOTITLE](/rest/packages).

Expand Down Expand Up @@ -73,7 +73,7 @@

### Deleting a version of a repository-scoped package with GraphQL

{% data reusables.package_registry.about-graphql-support %}{% ifversion packages-rest-api %} For information on using the REST API instead, see the [AUTOTITLE](/rest/packages).{% endif %}

Check warning on line 76 in content/packages/learn-github-packages/deleting-and-restoring-a-package.md

View workflow job for this annotation

GitHub Actions / lint-content

Liquid `ifversion` (and `elsif`) should not always be true

The Liquid ifversion condition 'packages-rest-api' includes all possible versions and will always be true.

Use the `deletePackageVersion` mutation in the GraphQL API. You must use a {% data variables.product.pat_v1 %} with the `read:packages`, `delete:packages`, and `repo` scopes. For more information about {% data variables.product.pat_v1_plural %}, see [AUTOTITLE](/packages/learn-github-packages/introduction-to-github-packages#authenticating-to-github-packages).

Expand Down
Loading