Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Delete non-default Module in google app engine

I tried to use Module following this tutorial

https://developers.google.com/appengine/docs/python/modules/

I need to delete Module quickly.

my cronjob-module.yaml is

application: myappication
module: cronjob-module
version: uno
runtime: python27
api_version: 1
threadsafe: true

Please tell me how to do it?

like image 593
John Avatar asked Dec 11 '22 05:12

John


2 Answers

You can easily delete a non-default module in the developer console. Click on Versions, then use the "Module:" pulldown to select the name of your module 'cronjob-module', then delete the versions you want.

If you have more than one version, the default version will say, "cannot delete default version". But delete the others first, and hit "stop" on the default version. Then, you get the "Delete" button clickable. I believe if you do it in that order, you can delete all of the versions.

like image 77
GAEfan Avatar answered Jan 24 '23 20:01

GAEfan


Using gcloud: see list of modules and their versions, then delete with module name and version number

gcloud preview app modules list

gcloud preview app modules delete your-module-name --version 0.0.0

More: https://cloud.google.com/sdk/gcloud/reference/preview/app/modules/delete?hl=en

like image 29
cramroop Avatar answered Jan 24 '23 19:01

cramroop