dotnet-package-remove(1)
💖 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 🔥
- remove the
Newtonsoft.JsonNuGet package from a project in the current directory:
dotnet package remove Newtonsoft.Json
- remove the
Newtonsoft.JsonNuGet 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
- alpine 3.24: dotnet-doc 10.0.303-r2 · MIT
- centos-stream 10: dotnet-host 11.0.0~rc.2.26504.105-0.10.el10 · 0BSD AND Apache-2.0 AND (Apache-2.0 WITH LLVM-exception) AND APSL-2.0 AND BSD-2-Clause AND BSD-3-Clause AND BSD-4-Clause AND BSL-1.0 AND bzip2-1.0.6 AND CC0-1.0 AND CC-BY-3.0 AND CC-BY-4.0 AND CC-PDDC AND CNRI-Python AND EPL-1.0 AND GPL-2.0-only AND (GPL-2.0-only WITH GCC-exception-2.0) AND GPL-2.0-or-later AND GPL-3.0-only AND ICU AND ISC AND LGPL-2.1-only AND LGPL-2.1-or-later AND LicenseRef-Fedora-Public-Domain AND LicenseRef-ISO-8879 AND MIT AND MIT-Wu AND MS-PL AND MS-RL AND NCSA AND OFL-1.1 AND OpenSSL AND Unicode-DFS-2015 AND Unicode-DFS-2016 AND W3C-19980720 AND X11 AND Zlib
- centos-stream 9: dotnet-host 11.0.0~rc.2.26504.105-0.11.el9 · 0BSD AND Apache-2.0 AND (Apache-2.0 WITH LLVM-exception) AND APSL-2.0 AND BSD-2-Clause AND BSD-3-Clause AND BSD-4-Clause AND BSL-1.0 AND bzip2-1.0.6 AND CC0-1.0 AND CC-BY-3.0 AND CC-BY-4.0 AND CC-PDDC AND CNRI-Python AND EPL-1.0 AND GPL-2.0-only AND (GPL-2.0-only WITH GCC-exception-2.0) AND GPL-2.0-or-later AND GPL-3.0-only AND ICU AND ISC AND LGPL-2.1-only AND LGPL-2.1-or-later AND LicenseRef-Fedora-Public-Domain AND LicenseRef-ISO-8879 AND MIT AND MIT-Wu AND MS-PL AND MS-RL AND NCSA AND OFL-1.1 AND OpenSSL AND Unicode-DFS-2015 AND Unicode-DFS-2016 AND W3C-19980720 AND X11 AND Zlib
- fedora 43: dotnet-host 10.0.12-1.fc43
- fedora 43: dotnet-host 11.0.0~rc.1.26425.128-0.10.fc43 · 0BSD AND Apache-2.0 AND (Apache-2.0 WITH LLVM-exception) AND APSL-2.0 AND BSD-2-Clause AND BSD-3-Clause AND BSD-4-Clause AND BSL-1.0 AND bzip2-1.0.6 AND CC0-1.0 AND CC-BY-3.0 AND CC-BY-4.0 AND CC-PDDC AND CNRI-Python AND EPL-1.0 AND GPL-2.0-only AND (GPL-2.0-only WITH GCC-exception-2.0) AND GPL-2.0-or-later AND GPL-3.0-only AND ICU AND ISC AND LGPL-2.1-only AND LGPL-2.1-or-later AND LicenseRef-Fedora-Public-Domain AND LicenseRef-ISO-8879 AND MIT AND MIT-Wu AND MS-PL AND MS-RL AND NCSA AND OFL-1.1 AND OpenSSL AND Unicode-DFS-2015 AND Unicode-DFS-2016 AND W3C-19980720 AND X11 AND Zlib
- fedora 44: dotnet-host 10.0.12-1.fc44
- fedora 44: dotnet-host 10.0.4-1.fc44 · 0BSD AND Apache-2.0 AND (Apache-2.0 WITH LLVM-exception) AND APSL-2.0 AND BSD-2-Clause AND BSD-3-Clause AND BSD-4-Clause AND BSL-1.0 AND bzip2-1.0.6 AND CC0-1.0 AND CC-BY-3.0 AND CC-BY-4.0 AND CC-PDDC AND CNRI-Python AND EPL-1.0 AND GPL-2.0-only AND (GPL-2.0-only WITH GCC-exception-2.0) AND GPL-2.0-or-later AND GPL-3.0-only AND ICU AND ISC AND LGPL-2.1-only AND LGPL-2.1-or-later AND LicenseRef-Fedora-Public-Domain AND LicenseRef-ISO-8879 AND MIT AND MIT-Wu AND MS-PL AND MS-RL AND NCSA AND OFL-1.1 AND OpenSSL AND Unicode-DFS-2015 AND Unicode-DFS-2016 AND W3C-19980720 AND X11 AND Zlib
- fedora 44: dotnet-host 11.0.0~rc.1.26425.128-0.12.fc44 · 0BSD AND Apache-2.0 AND (Apache-2.0 WITH LLVM-exception) AND APSL-2.0 AND BSD-2-Clause AND BSD-3-Clause AND BSD-4-Clause AND BSL-1.0 AND bzip2-1.0.6 AND CC0-1.0 AND CC-BY-3.0 AND CC-BY-4.0 AND CC-PDDC AND CNRI-Python AND EPL-1.0 AND GPL-2.0-only AND (GPL-2.0-only WITH GCC-exception-2.0) AND GPL-2.0-or-later AND GPL-3.0-only AND ICU AND ISC AND LGPL-2.1-only AND LGPL-2.1-or-later AND LicenseRef-Fedora-Public-Domain AND LicenseRef-ISO-8879 AND MIT AND MIT-Wu AND MS-PL AND MS-RL AND NCSA AND OFL-1.1 AND OpenSSL AND Unicode-DFS-2015 AND Unicode-DFS-2016 AND W3C-19980720 AND X11 AND Zlib
- nixpkgs unstable: dotnet-vmr 11.0.0-rc.3
- ubuntu noble: dotnet-host-10.0 10.0.12-0ubuntu1~24.04.1
- ubuntu questing: dotnet-host-10.0 10.0.9-0ubuntu1~25.10.1
- ubuntu resolute: dotnet-host-10.0 10.0.12-0ubuntu1~26.04.1
- ubuntu resolute: dotnet-host-10.0 10.0.5-0ubuntu1 · MIT
- ubuntu stonking: dotnet-host-10.0 10.0.12-0ubuntu2 · MIT
- ubuntu stonking: dotnet-host-11.0 11.0.0~rc1-0ubuntu1 · MIT
- ubuntu stonking: dotnet-host-11.0 11.0.0~rc3-0ubuntu1~26.10.1 · MIT
- 💖 girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms