# File lib/chef/provider/directory.rb, line 56
      def action_delete
        if ::File.directory?(@new_resource.path) && ::File.writable?(@new_resource.path)
          if @new_resource.recursive == true
            FileUtils.rm_rf(@new_resource.path)
            Chef::Log.info("#{@new_resource} deleted #{@new_resource.path} recursively")
          else
            ::Dir.delete(@new_resource.path)
            Chef::Log.info("#{@new_resource} deleted #{@new_resource.path}")
          end
          @new_resource.updated_by_last_action(true)
        else
          raise RuntimeError, "Cannot delete #{@new_resource} at #{@new_resource_path}!" if ::File.exists?(@new_resource.path)
        end
      end