[英]Delete non-default Module in google app engine
I tried to use Module following this tutorial 我尝试按照本教程使用Module
https://developers.google.com/appengine/docs/python/modules/ https://developers.google.com/appengine/docs/python/modules/
I need to delete Module quickly. 我需要快速删除Module。
my cronjob-module.yaml is 我的cronjob-module.yaml是
application: myappication
module: cronjob-module
version: uno
runtime: python27
api_version: 1
threadsafe: true
Please tell me how to do it? 请告诉我怎么做?
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.
单击版本,然后使用“模块:”下拉菜单选择模块“cronjob-module”的名称,然后删除所需的版本。
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.
我相信如果按顺序执行,您可以删除所有版本。
Using gcloud: see list of modules and their versions, then delete with module name and version number 使用gcloud:查看模块列表及其版本,然后使用模块名称和版本号删除
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 更多: https : //cloud.google.com/sdk/gcloud/reference/preview/app/modules/delete?hl = en
Some of gcloud
APIs have changed. 一些
gcloud
API已经改变。 So use the following from now on. 所以从现在开始使用以下内容。
List all versions
in all services
(including default
): 列出所有
services
所有versions
(包括default
):
gcloud preview app versions list
Stop a specific version: 停止特定版本:
gcloud preview app versions stop 20160421t052824
Delete a specific version: 删除特定版本:
gcloud preview app versions delete 20160421t052824
Delete an entire service (*this is what you want): 删除整个服务 (*这是你想要的):
gcloud preview app services delete api
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.