class RuboCop::Cop::Chef::Correctness::PowershellScriptDeleteFile

Use the ‘file` or `directory` resources built into Chef Infra Client with the :delete action to remove files/directories instead of using Remove-Item in a powershell_script resource

@example

 ### incorrect
 powershell_script 'Cleanup old files' do
   code 'Remove-Item C:\Windows\foo\bar.txt'
   only_if { ::File.exist?('C:\\Windows\\foo\\bar.txt') }
 end

### correct
file 'C:\Windows\foo\bar.txt' do
  action :delete
end