    # File lib/chef/provider/link.rb, line 141
          def action_delete
            if @new_resource.link_type == :symbolic
              if ::File.symlink?(@new_resource.target_file)
                ::File.delete(@new_resource.target_file)
                Chef::Log.info("#{@new_resource} deleted")
                @new_resource.updated_by_last_action(true)
              elsif ::File.exists?(@new_resource.target_file)
                raise Chef::Exceptions::Link, "Cannot delete #{@new_resource} at #{@new_resource.target_file}! Not a symbolic link."
              end
            elsif @new_resource.link_type == :hard
              if ::File.exists?(@new_resource.target_file)
                 if ::File.exists?(@new_resource.to) && ::File.stat(@current_resource.target_file).ino == ::File.stat(@new_resource.to).ino
                   ::File.delete(@new_resource.target_file)
                   Chef::Log.info("#{@new_resource} deleted")
                   @new_resource.updated_by_last_action(true)
                 else
                   raise Chef::Exceptions::Link, "Cannot delete #{@new_resource} at #{@new_resource.target_file}! Not a hard link."
                 end
              end
            end
          end