# How to Trim Your Minecraft World to Reduce File Size (/docs/minecraft/trim-world)



Over time, Minecraft worlds grow as players explore. Trimming removes chunks that have barely been visited, reducing file size and allowing new terrain to generate with updated features after Minecraft updates.

Method 1: MCA Selector (Recommended) [#method-1-mca-selector-recommended]

<div className="fd-steps">
  <div className="fd-step">
    Download your world [#1-download-your-world]

    Access the [XGamingServer panel](https://panel.xgamingserver.com), stop your server, and [download your world](/docs/minecraft/download-world).
  </div>

  <div className="fd-step">
    Install MCA Selector [#2-install-mca-selector]

    Download MCA Selector from GitHub (requires Java). Open the application.
  </div>

  <div className="fd-step">
    Open your world [#3-open-your-world]

    Go to File → Open and select your downloaded world's `region` folder.
  </div>

  <div className="fd-step">
    Filter and select chunks [#4-filter-and-select-chunks]

    Go to Tools → Filter Chunks. Useful filters:

    | Filter          | Value        | Effect                                |
    | --------------- | ------------ | ------------------------------------- |
    | `InhabitedTime` | `< 1 minute` | Select barely-visited chunks          |
    | `Timestamp`     | `< [date]`   | Select chunks generated before a date |
    | `xPos, zPos`    | Range values | Select chunks in a geographic area    |
  </div>

  <div className="fd-step">
    Delete selected chunks [#5-delete-selected-chunks]

    Select All → Delete Selected Chunks. These chunks will regenerate with current world generation when explored again.
  </div>

  <div className="fd-step">
    Re-upload the world [#6-re-upload-the-world]

    Upload the trimmed world back to your server via `Files`.
  </div>
</div>

Method 2: WorldBorder Plugin [#method-2-worldborder-plugin]

<div className="fd-steps">
  <div className="fd-step">
    Install WorldBorder [#1-install-worldborder]

    Upload the WorldBorder plugin to `/plugins/` via `Files` and restart.
  </div>

  <div className="fd-step">
    Set a border [#2-set-a-border]

    In `Console`:

    ```
    wb world set 5000 0 0
    ```
  </div>

  <div className="fd-step">
    Trim outside the border [#3-trim-outside-the-border]

    ```
    wb world trim
    ```

    This deletes all chunks outside the border.

    > 💡 **Tip:** Trim your world before major Minecraft updates to get new terrain features in previously-explored-but-barely-used areas.

    > ⚠️ **Warning:** Trimmed chunks are permanently deleted. Always back up via `Backups` before trimming.

    See also: [Add World Border](/docs/minecraft/add-world-border) | [Reset Chunks](/docs/minecraft/reset-chunks)

    If you need help, join our [Discord](https://discord.xgamingserver.com/).
  </div>
</div>
