The main Bubble source repository. Contains the Bubble API server, the web UI, documentation and utilities. https://getbubblenow.com
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

17 lines
530 B

  1. #!/bin/bash
  2. #
  3. # Copyright (c) 2020 Bubble, Inc. All rights reserved. For personal (non-commercial) use, see license: https://getbubblenow.com/bubble-license/
  4. #
  5. LABEL=${1:?no label provided}
  6. THISDIR=$(cd $(dirname ${0}) && pwd)
  7. VCURL=${THISDIR}/vcurl
  8. SUBID=$(${THISDIR}/vultr_subid_for_instance.sh ${LABEL})
  9. if [[ -z "${SUBID}" ]] ; then
  10. echo "No instance found with label ${LABEL}"
  11. exit 1
  12. fi
  13. echo "Deleting instance: ${SUBID}"
  14. ${VCURL} server/destroy -X POST -d "SUBID=${SUBID}" || echo "Error deleting instance: ${SUBID}"