# How to Wipe & Reinstall Your Sons of the Forest Server (/docs/sons-of-the-forest/wipe-reinstall)



import { Tab, Tabs } from 'fumadocs-ui/components/tabs';
import { Step, Steps } from 'fumadocs-ui/components/steps';

<Tabs items={['New World (Keep Config)', 'Delete Save Manually', 'Full Reinstall']}>
  <Tab value="New World (Keep Config)">
    The easiest way to start fresh — use the built-in `SaveMode` setting.

    <Steps>
      <Step>
        Stop the server [#stop-the-server]

        Go to **Console** in the [XGamingServer Panel](https://panel.xgamingserver.com) and stop the server.
      </Step>

      <Step>
        Edit dedicatedserver.cfg [#edit-dedicatedservercfg]

        Click **Files** and open `dedicatedserver.cfg`. Set:

        ```json
        "SaveMode": "New"
        ```

        Optionally change `SaveSlot` to a different number (e.g., `2`) to preserve the old world in its slot:

        ```json
        "SaveSlot": 2,
        "SaveMode": "New"
        ```
      </Step>

      <Step>
        Start the server [#start-the-server]

        Start from **Console**. A new world generates. The server automatically switches `SaveMode` back to `"Continue"` after the first run.
      </Step>
    </Steps>

    > **Warning:** If you don't change `SaveSlot`, setting `SaveMode` to `"New"` **overwrites** the existing save in that slot permanently.
  </Tab>

  <Tab value="Delete Save Manually">
    <Steps>
      <Step>
        Create a backup [#create-a-backup]

        Go to **Backups** and save your current state.
      </Step>

      <Step>
        Stop the server [#stop-the-server-1]

        Stop from **Console**.
      </Step>

      <Step>
        Delete the save folder [#delete-the-save-folder]

        In **Files**, navigate to `Saves/DedicatedServer/Multiplayer/` and delete the save slot folder (e.g., `0000000001`).

        {/* Screenshot needed: File Manager showing Multiplayer save folders */}
      </Step>

      <Step>
        Start the server [#start-the-server-1]

        Start from **Console**. A fresh world generates in the configured save slot.
      </Step>
    </Steps>
  </Tab>

  <Tab value="Full Reinstall">
    Removes everything — world, config, all server files.

    <Steps>
      <Step>
        Create a backup [#create-a-backup-1]

        Go to **Backups** and save everything.
      </Step>

      <Step>
        Stop the server [#stop-the-server-2]

        Stop from **Console**.
      </Step>

      <Step>
        Delete all files [#delete-all-files]

        In **Files**, select all files and delete them.
      </Step>

      <Step>
        Reinstall [#reinstall]

        On the **Dashboard**, click **Reinstall Server**. Fresh server files are downloaded.

        {/* Screenshot needed: Dashboard with Reinstall Server widget */}
      </Step>

      <Step>
        Reconfigure [#reconfigure]

        Edit `dedicatedserver.cfg` with your server name, password, difficulty, and custom settings. Add admin SteamIDs to `ownerswhitelist.txt`. Start the server.
      </Step>
    </Steps>
  </Tab>
</Tabs>

Related Guides [#related-guides]

* [Server Configuration](/docs/sons-of-the-forest/server-config)
* [Upload a Save](/docs/sons-of-the-forest/import-save)
