Uninstall packages and all their dependencies at once

Is there any way for me to uninstall packages and all their dependencies in a single command? Without having to be uninstalling one by one. Type:

Cannot uninstall 'System. Net.Http.4.3. 3' because 'NETStandard.Library.1.6.1 ' depends on it

How do I do it?

Edit1

I did this and I can't uninstall

Uninstall-Package Package Name-RemoveDependencies

Then I tried uninstall the package NETStandard.Library.1.6.1 and I got the following message: Package NETStandard.Library.1.6.1 was not found.

Author: pnet, 2018-01-05

1 answers

Use the command:

Uninstall-Package NomeDoPacote –RemoveDependencies

This command is responsible for removing the package and its dependencies. You can use the -Force command at the end to force the removal.

Source: marcusoft.net

 2
Author: LP. Gonçalves, 2018-01-05 17:04:06