I want to delete existing content when using Google Cloud Storage Deploy
In other words I would like to have an option that removes everything in $BUCKET before uploading then new content.
Something like this (that is not tested!!)
if [ "$DELETE_BEFORE_COPY" = "true" ]; then
run gsutil rm -f gs://${BUCKET}/ || true # Allow fail if path does not exist yet
fi
run gsutil ${METADATA_STRING} cp ${ARGS_STRING} ${SOURCE} gs://${BUCKET}/
@marton_tempus Hi. Thanks for your idea. We will investigate about that and notify you if this feature becomes available.
Regards, Igor.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.