How to Delete Startup Scripts for Vultr Instances

Updated on September 25, 2024

Deleting Startup Scripts for Vultr instances completely removes the script from your account. This step is necessary if you no longer need to run the commands when provisioning Cloud Compute instances. After deleting a startup script, you can't undo the operation, so you should take great care.

Follow this guide to delete Startup Scripts for Vultr instances using the Vultr Customer Portal, API, and CLI.

  • Vultr Customer Portal
  • Vultr API
  • Vultr CLI
  1. Navigate to Orchestration and select Scripts.

  2. Select the target startup script and click the delete icon to remove the script.

    Add Startup Script

  3. Confirm the new change and click Delete.

    Confirm Delete

  1. Send a GET request to the List Startup Scripts endpoint and note the script ID.

    console
    $ curl "https://api.vultr.com/v2/startup-scripts" \
        -X GET \
        -H "Authorization: Bearer ${VULTR_API_KEY}"
    
  2. Send a DELETE request to the Delete Startup Script endpoint and specify a script ID.

    console
    $ curl "https://api.vultr.com/v2/startup-scripts/script_id" \
        -X DELETE \
        -H "Authorization: Bearer ${VULTR_API_KEY}"
    
  1. List all scripts.

    console
    $ vultr-cli script list
    
  2. Delete a script by specifying a script ID.

    console
    $ vultr-cli script delete script_id
    

    Run vultr-cli script delete --help to view all options.