How to Reinstall a Vultr Optimized Cloud Compute Instance
-
by Blog Admin
- 3
How to Reinstall a Vultr Optimized Cloud Compute Instance
Learn how to reinstall your Vultr Optimized Cloud Compute instance to reset it to a fresh state.
Reinstalling an instance wipes the file system, resets all configurations, and reinstalls the operating system. Any data on the instance’s file system is permanently deleted and cannot be recovered unless a backup or snapshot is available in your Vultr account.
Follow this guide to reinstall a Vultr Optimized Cloud Compute instance using the Vultr Customer Portal, API, CLI, or Terraform.
Reinstalling an instance will wipe all data and reinstall the operating system.
Vultr Customer Portal
- Navigate to Products and click Compute.
- Click your target Vultr Optimized Cloud Compute instance to open its management page.
- Click Server Reinstall on the top-right navigation menu.
- Check the confirmation prompt and click Reinstall Server to apply the changes.
Vultr API
- Send a
GET
request to the List Instances endpoint and note your target instance’s ID.console$ curl "https://api.vultr.com/v2/instances" \ -X GET \ -H "Authorization: Bearer ${VULTR_API_KEY}"
- Send a
POST
request to the Reinstall Instance endpoint to reinstall the target instance.console$ curl "https://api.vultr.com/v2/instances/{instance-id}/reinstall" \ -X POST \ -H "Authorization: Bearer ${VULTR_API_KEY}" \
Vultr CLI
- List all available instances and note your target instance’s ID.
console
$ vultr-cli instance list
- Reinstall the target instance.
console
$ vultr-cli instance reinstall <instance_id>
Terraform
- Open your Terraform configuration for the existing Optimized Cloud Compute instance.
- Trigger a reinstall by replacing the instance during apply.
console
$ terraform apply -replace=vultr_instance.occ
- Apply the configuration and observe the following output:
Apply complete! Resources: 1 added, 0 changed, 1 destroyed.
How to Reinstall a Vultr Optimized Cloud Compute Instance Learn how to reinstall your Vultr Optimized Cloud Compute instance to reset it to a fresh state. Reinstalling an instance wipes the file system, resets all configurations, and reinstalls the operating system. Any data on the instance’s file system is permanently…
How to Reinstall a Vultr Optimized Cloud Compute Instance Learn how to reinstall your Vultr Optimized Cloud Compute instance to reset it to a fresh state. Reinstalling an instance wipes the file system, resets all configurations, and reinstalls the operating system. Any data on the instance’s file system is permanently…