> ## Documentation Index
> Fetch the complete documentation index at: https://clickhouse.com/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# max_files_* MergeTree table settings

> ClickHouse MergeTree table settings in the max_files_* generated group.

export const SettingsInfoBlock = ({type, default_value, changeable_without_restart}) => {
  return <div className="not-prose" style={{
    display: "flex",
    flexWrap: "wrap",
    alignItems: "baseline",
    columnGap: "0.5rem",
    rowGap: "0.125rem",
    margin: "0.375rem 0",
    fontSize: "0.8125rem",
    lineHeight: "1.125rem"
  }}>
      <div style={{
    fontWeight: 600,
    opacity: 0.72
  }}>Type</div>
      <div style={{
    overflowWrap: "anywhere"
  }}>{type}</div>
      <div style={{
    fontWeight: 600,
    opacity: 0.72,
    marginInlineStart: "0.5rem"
  }}>Default</div>
      <div style={{
    overflowWrap: "anywhere"
  }}>{default_value}</div>
      {changeable_without_restart && <div style={{
    fontWeight: 600,
    opacity: 0.72,
    marginInlineStart: "0.5rem"
  }}>
          Changeable without restart
        </div>}
      {changeable_without_restart && <div style={{
    overflowWrap: "anywhere"
  }}>
          {changeable_without_restart}
        </div>}
    </div>;
};

These settings are available in [system.merge\_tree\_settings](/docs/reference/system-tables/merge_tree_settings) and are autogenerated from ClickHouse source.

<h2 id="max_files_to_modify_in_alter_columns">
  max\_files\_to\_modify\_in\_alter\_columns
</h2>

<SettingsInfoBlock type="UInt64" default_value="75" />

Do not apply ALTER if number of files for modification(deletion, addition)
is greater than this setting.

Possible values:

* Any positive integer.

Default value: 75

<h2 id="max_files_to_remove_in_alter_columns">
  max\_files\_to\_remove\_in\_alter\_columns
</h2>

<SettingsInfoBlock type="UInt64" default_value="50" />

Do not apply ALTER, if the number of files for deletion is greater than this
setting.

Possible values:

* Any positive integer.
