Problem with platform tools installation

I’m really sorry but I’ve typed:

if (Test-Path "$env:LOCALAPPDATA\opam") { del -force -recurse "$env:LOCALAPPDATA\opam" }

and then I’ve been to [ANN] opam 2.2.0 is out! but I don’t know what to do then.