File Manager

Path: /opt/chef/embedded/lib/ruby/gems/2.7.0/gems/winrm-fs-1.3.3/lib/winrm-fs/scripts/

Viewing File: delete.ps1.erb

$p = $ExecutionContext.SessionState.Path
$path = $p.GetUnresolvedProviderPathFromPSPath("<%= path %>")
if (Test-Path $path) {
  Remove-Item $path -Force -Recurse
}
exit 0