Skip to main content

Reinstall OS

Reinstalling allows you to change or reinstall your server's operating system, restoring the instance to a fresh state.

Steps

  1. Log in to GoMami, go to the server control panel
  2. Click the Rebuild button at the top
  3. Enter the server name
  4. Select the operating system and version to install
  5. Optionally configure hostname, timezone, Swap space, SSH keys
  6. Click Install to confirm

Reinstall OS

caution

Reinstalling will permanently delete all data on the server, including files, databases, and configurations. This action is irreversible — please back up important data first.

Available OS Templates

Operating SystemAvailable Versions
Ubuntu20.04 LTS, 22.04 LTS, 24.04 LTS
Debian11 (Bullseye), 12 (Bookworm), 13 (Trixie)
CentOS7, Stream 9
AlmaLinux9, 10
Rocky Linux8, 9, 10
Fedora41, 42
info

OS templates are updated periodically. Actual available versions are shown in the control panel.

Important Notes

  • The server will automatically shut down before reinstalling
  • Reinstallation typically takes 3-5 minutes
  • The server will auto-start after reinstallation
  • You'll need to use the newly set password to connect
  • Previous SSH key authorizations will be cleared and need reconfiguration
tip

If you only need to fix system issues without losing data, try Rescue Mode first.

Via API

# Get available OS templates
curl -X GET https://cp.gomami.io/api/server/{id}/build/templates \
-H "Authorization: Bearer <your_api_token>"

# Reinstall OS
curl -X POST https://cp.gomami.io/api/server/{id}/build \
-H "Authorization: Bearer <your_api_token>" \
-H "Content-Type: application/json" \
-d '{
"template_id": "<template_id>",
"password": "<new_password>"
}'

Next Steps