Uninstall Docker from Windows Server 2022

Hi everyone, I am new in docker and today tried to install it on Windows Server 2022. I think I did all by instructions, but after finishing the installation I couldn’t find docker folder in the Program Files folder. I tried to look for docker.exe and I found it in System32 folder. I can see that Docker Engine service is up and running in Services. When I run dotnet version command then I got the response saying that the installed version is 24.0.5. Can you help me to completely uninstall the docker from my server so I will try to reinstall it again? I tried the instructions mentioned here but getting the following error.

Uninstall-Package -Name docker -ProviderName DockerMsftProvider
Uninstall-Package : Unable to find package providers (DockerMsftProvider).
At line:1 char:1

  • Uninstall-Package -Name docker -ProviderName DockerMsftProvider
  •   + CategoryInfo          : InvalidArgument: (Microsoft.Power...ninstallPackage:UninstallPackage) [Uninstall-Package
     ], Exception
      + FullyQualifiedErrorId : UnknownProviders,Microsoft.PowerShell.PackageManagement.Cmdlets.UninstallPackage