# File lib/chef/provider/ifconfig.rb, line 195 def delete_config require 'fileutils' case node[:platform] when "centos","redhat","fedora" ifcfg_file = "/etc/sysconfig/network-scripts/ifcfg-#{@new_resource.device}" if ::File.exist?(ifcfg_file) converge_by ("delete the #{ifcfg_file}") do FileUtils.rm_f(ifcfg_file, :verbose => false) end end when "debian","ubuntu" # delete configs when "slackware" # delete configs end end