From 11584a62fa4b7246881e2becd692b46f2572cc04 Mon Sep 17 00:00:00 2001 From: Pradipta Banerjee Date: Mon, 13 May 2024 22:07:18 +0530 Subject: [PATCH] Remove delete_image_using_name function This is not used anywhere Signed-off-by: Pradipta Banerjee --- .../peerpods/podvm/azure-podvm-image-handler.sh | 16 ---------------- 1 file changed, 16 deletions(-) diff --git a/config/peerpods/podvm/azure-podvm-image-handler.sh b/config/peerpods/podvm/azure-podvm-image-handler.sh index e2d3cb6d..d2450cd6 100755 --- a/config/peerpods/podvm/azure-podvm-image-handler.sh +++ b/config/peerpods/podvm/azure-podvm-image-handler.sh @@ -638,22 +638,6 @@ function delete_image_gallery() { echo "Azure image gallery deleted successfully" } -# Function to delete the image from Azure given the image name -# Resource group is must -# Input is of the form /subscriptions//resourceGroups//providers/Microsoft.Compute/images/ - -function delete_image_using_name() { - echo "Deleting Azure image" - # If any error occurs, exit the script with an error message - - # Delete the image - az image delete --resource-group "${AZURE_RESOURCE_GROUP}" \ - --name "${IMAGE_NAME}" || - error_exit "Failed to delete the image" - - echo "Azure image deleted successfully" -} - # Function to delete the image from Azure given the image id # Input is of the form # /subscriptions//resourceGroups//providers/Microsoft.Compute/galleries//images//versions/