Skip to content

#4911 Add script to unlist old prerelease packages on nuget.org - #4912

Merged
rockfordlhotka merged 1 commit into
mainfrom
4911-delist-prerelease-packages
Sep 13, 2026
Merged

rockfordlhotka merged 1 commit into
mainfrom
4911-delist-prerelease-packages

Conversation

@rockfordlhotka

Copy link
Copy Markdown
Member

Closes #4911

Adds Support/delist-prerelease-packages.py and Support/delist-prerelease-packages.md.

The script queries nuget.org for packages owned by an account and unlists prerelease versions that are:

  • superseded by a listed stable version with an equal or higher major.minor.patch
  • non-public builds whose only prerelease tag is a git commit id (e.g. 10.0.1-geeb45f365a)
  • in packages named with --include, or all prereleases with --all-prerelease

It's a dry run by default. --apply reads a short-lived, unlist-scoped API key from NUGET_API_KEY. No key is stored in the repo. A current dry run (--include Csla.Web) lists 87 versions and keeps the in-flight 10.2.0-beta.1 packages.

🤖 Generated with Claude Code

https://claude.ai/code/session_01Dn4aKN7kqcG78x1HBWApk3

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Dn4aKN7kqcG78x1HBWApk3
@rockfordlhotka
rockfordlhotka merged commit 222c9da into main Sep 13, 2026
1 check passed
@rockfordlhotka
rockfordlhotka deleted the 4911-delist-prerelease-packages branch September 13, 2026 20:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add script to unlist old prerelease packages on nuget.org

1 participant