# 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
            Chef::Log.info("Deleting #{@new_resource} recursively at #{@new_resource.path}")
            FileUtils.rm_rf(@new_resource.path)
          else
            Chef::Log.info("Deleting #{@new_resource} at #{@new_resource.path}")
            ::Dir.delete(@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