dotnet-package-remove(1)

📦
version 11.0.0~rc3 · 2 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-package-remove — the .NET manual, bestie edition 💖

okay so this page lives in the .NET Documentation set, and the command itself is literally called dotnet package remove. It applies to: ✔️ .NET 6 SDK and later versions ✨


🌸 NAME 🌸

dotnet-package-remove — bestie, it removes a package reference from a project file. that's the whole job. no cap. 💅

ok real talk, read this before you type anything: if you're on .NET 9 SDK or earlier, you gotta use the "verb first" form instead, which is dotnet-remove-package. the "noun first" form? that's a .NET 10 debut, brand new, main character energy. for more info, go peek at More consistent command order. 🫶

✨ SYNOPSIS ✨

dotnet package remove <PACKAGE_NAME>
  [--file <FILE>] [--interactive] [--project <PROJECT>]

dotnet package remove -h|--help

💜 DESCRIPTION 💜

so like, the dotnet package remove command is the convenient little shortcut for removing a NuGet package reference from a project. that's it. that's the vibe. you point it at a package, it dips. 🦋


🎀 ARGUMENTS 🎀

  • PACKAGE_NAME — the package reference you wanna remove. that's the one. 🍓

💅 OPTIONS 💅

  • --file <FILE> — the file-based app to operate on.
  • --interactive — lets the command pause and wait for you to do a thing (user input or action). for example, to finish up authentication. it's giving "hold on bestie, i need you for a sec". 🙈
  • -p, --project <PROJECT> — the project file to operate on. heads up: if you hand it a solution file instead, the command updates the package in all the projects in that solution that reference it. and if you don't specify anything at all? it goes searching the current directory for a project file. 🔍
  • -?, -h, --help — prints out a description of how to use the command. classic. 👑

🔥 EXAMPLES 🔥

  1. remove the Newtonsoft.Json NuGet package from a project in the current directory:
dotnet package remove Newtonsoft.Json
  1. remove the Newtonsoft.Json NuGet package from a specific project file:
dotnet package remove Newtonsoft.Json --file MyApp.cs

⭐ that's the whole page ⭐

and that's a wrap, bestie 🫶 this little doc came straight out of the .NET Documentation source, dated 2025-10-30, and if you ever see it in the wild it's filed under dotnet-package-remove(1). go forth and remove packages responsibly. periodt. 💖✨🎀

📦 where this page comes from