dotnet-nuget-delete(1)

πŸ“¦
version 11.0.0~rc3 Β· 6 versions
, in alpine 3.24, centos-stream 10, centos-stream 9, fedora 43, fedora 44, nixpkgs unstable, ubuntu noble, ubuntu questing, ubuntu resolute, ubuntu stonking

πŸ’– dotnet-nuget-delete β€” bestie, we're yeeting a package πŸ’…

okay so real talk, this page lives in the .NET Documentation family, it's the manual for dotnet-nuget-delete(1), and it applies to βœ”οΈ .NET 6 SDK and later versions. no cap.


✨ NAME ✨

dotnet-nuget-delete β€” deletes or unlists a package from the server. that's it, that's the job 🫢


🌸 SYNOPSIS 🌸

dotnet nuget delete [<PACKAGE_NAME> <PACKAGE_VERSION>] [--force-english-output]
    [--interactive] [-k|--api-key <API_KEY>] [--no-service-endpoint]
    [--non-interactive] [-s|--source <SOURCE>]

dotnet nuget delete -h|--help

πŸ¦‹ DESCRIPTION πŸ¦‹

the dotnet nuget delete command deletes or unlists a package from the server. simple as that.

now here's the tea for nuget.org (https://www.nuget.org/): the action is to unlist the package, not straight-up delete it. so don't panic, it's giving soft launch not full goodbye 😭


πŸŽ€ ARGUMENTS πŸŽ€

  • PACKAGE_NAME β€” the name/ID of the package you're deleting. who is she? that's her.
  • PACKAGE_VERSION β€” the version of the package you're deleting. gotta be specific bestie, no vibes-only guesses.

πŸ‘‘ OPTIONS πŸ‘‘

  • --force-english-output β€” forces the app to run using an invariant, English-based culture. yes ma'am, we're doing this in English only πŸ’…
  • -?|-h|--help β€” prints out a description of how to use the command. the classic "wait what do i type" savior πŸ™ˆ
  • --interactive β€” allows the command to stop and wait for user input or action. for example, to complete authentication. available since .NET Core 3.0 SDK. she's patient, she'll wait for you 🫢
  • -k|--api-key <API_KEY> β€” the API key for the server. your lil hall pass πŸ”‘
  • --no-service-endpoint β€” by default, the command appends /api/v2/package to the specified URL. this option is for custom feeds that must use the exact source URL as specified with the --source option. for more information, see the --source option later in this article. basically: "don't add the extra path, i meant exactly what i said" ✨
  • --non-interactive β€” doesn't prompt for user input or confirmations. no questions, no small talk, just do it ⭐
  • -s|--source <SOURCE> β€” specifies the server URL. the URL you pass with this option can be either V2 (https://www.nuget.org/api/v2/) or V3 (https://api.nuget.org/v3/index.json). for private feeds, replace the host name (for example, %hostname%/api/v3/index.json). pick your portal, bestie 🌈

πŸ“ EXAMPLES πŸ“

  • deletes version 1.0 of package Microsoft.AspNetCore.Mvc:
dotnet nuget delete Microsoft.AspNetCore.Mvc 1.0
  • deletes version 1.0 of package Microsoft.AspNetCore.Mvc, not prompting user for credentials or other input:
dotnet nuget delete Microsoft.AspNetCore.Mvc 1.0 --non-interactive

heads up: on nuget.org, "delete" really means unlist. the package doesn't vanish into the void, it just gets shy πŸ™ˆ

and that's the whole page, periodt πŸ’œ this one was documented 2025-10-30 and it belongs to the dotnet-nuget-delete(1) manual. go forth and unlist responsibly, main character πŸŽ€βœ¨

πŸ“¦ where this page comes from