I'm writing a chef script to install nvm for windows. I've just had a problem where the system ends up with a User and a System variable for NVM_HOME
env 'NVM_HOME' do
action :delete
end
the above would presumable remove both
How can I amend my chef script to ensure the system variable is kept but the user variable is removed if present?