Wsl2Instance cmdlet removes a specified PnP WSL2 instance.
It requires the name of the instance as a mandatory parameter.
The cmdlet validates the instance name before attempting to remove it.
If the -Force switch is not provided, it prompts for confirmation before removing the instance.</p>
<h2 id="example-1">EXAMPLE 1</h2>
<pre><code># Remove a PnP WSL2 instance named &quot;MyInstance&quot;
Remove-PnPWsl2Instance -Instance &quot;MyInstance&quot;
</code></pre>
<h2 id="example-2">EXAMPLE 2</h2>
<pre><code>#