Reinstalling a Vultr Optimized Cloud Compute instance wipes the file system, resets all configurations and reinstalls the operating system. Any data available on the instance's file system is permanently deleted and cannot be recovered unless backed up.
Follow this guide to reinstall a Vultr Optimized Cloud Compute instance using the Vultr Customer Portal, API, or CLI.
Navigate to Products and click Compute.
Click your target Optimized Cloud Compute instance to open its management page.
Click Server Reinstall on the top-right navigation menu to reinstall the server's file system.
Check the confirmation prompt and click Reinstall Server to apply changes.
Send a GET
request to the List Instances endpoint and note the target instance's ID.
$ 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 instance with a new hostname.
$ curl "https://api.vultr.com/v2/instances/{instance-id}/reinstall" \
-X POST \
-H "Authorization: Bearer ${VULTR_API_KEY}" \
-H "Content-Type: application/json" \
--data '{
"hostname" : "new_instance_hostname"
}'
List all instances in your Vultr account and note the target instance's ID.
$ vultr-cli instance list
Reinstall the instance with a new hostname.
$ vultr-cli instance reinstall --host <new_instance_hostname> <instance_id>