To delete a specific version of an App Engine application in GCP, you can use the Google Cloud Console and gcloud CLI commands. Here are the detailed steps for each approach:
- Google Cloud Console:
a. Go to the GCP Console: https://console.cloud.google.com/
b. Select your project.
c. Navigate to the App Engine dashboard by clicking the hamburger menu, then click on “App Engine.”
d. Click on the “Versions” tab on the left side menu.
e. Locate the specific version you want to delete.
f. Click the checkbox next to the version.
g. Click on the “Delete” button at the top of the page. This will delete the selected version. - CLI Commands (gcloud):
a. Install and set up the Google Cloud SDK: https://cloud.google.com/sdk/docs/install
b. Authenticate with your GCP account:gcloud auth login
c. Set the active project:gcloud config set project PROJECT_ID
d. Delete the specific version of your App Engine application:gcloud app versions delete VERSION_ID
ReplaceVERSION_ID
with the ID of the version you want to delete.
Please note that deleting a version will permanently remove it and make it unavailable for serving traffic. If the version you’re deleting is the only one serving traffic for your application, your application will become unavailable. Be sure to have another version running and serving traffic before deleting a version to avoid any downtime.
Leave a Reply