Npgsql is installed per project. To uninstall it, follow the procedure below:
Linux
Remove a package reference to the project file.
dotnet remove projectFilePath package Npgsql
Windows(R)
In Visual Studio, open a project for which Npgsql is installed.
Click [Tools] >> [NuGet Package Manager] >> [Manage NuGet Packages for Solution].
Select all the projects that have Npgsql installed, and then click [Uninstall].
Alternatively, if the plugin packages have been removed and is no longer installed, in the solution explorer open the Dependencies/NuGet node and delete the plugins that require uninstallation.