# File ar-extensions/lib/ar-extensions/delete.rb, line 35
      def delete_all_with_extension(conditions = nil, options={})

        #raise an error if delete is not supported and options are specified
        supports_delete! if options.any?

        #call the base method if no options specified
        return delete_all_without_extension(conditions) unless options.any?

        #batch delete
        return delete_all_batch(conditions, options[:batch], options[:limit]) if options[:batch]

        #regular delete with limit
        connection.delete(delete_all_extension_sql(conditions, options), "#{name} Delete All")
      end