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.
|
- #!/bin/bash
-
- IMAGEID=${1:?no IMAGEID provided}
- THISDIR=$(cd $(dirname ${0}) && pwd)
- DOCURL=${THISDIR}/docurl
-
- if [[ ${IMAGEID} == "-n" ]] ; then
- IMAGE_NAME=${2:?no image name provided}
- echo "Deleting image named: ${IMAGE_NAME}"
- ${0} $(${DOCURL} "images?private=true" | jq -r '.images[] | select(.name=="'${IMAGE_NAME}'") | .id') || echo "Error deleting image named: ${IMAGE_NAME}"
-
- else
- echo "Deleting image: ${IMAGEID}"
- ${DOCURL} images/${IMAGEID} -X DELETE || echo "Error deleting image: ${IMAGEID}"
- fi
|