简体   繁体   English

删除Google应用引擎中的非默认模块

[英]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. 所以从现在开始使用以下内容。

  1. List all versions in all services (including default ): 列出所有services所有versions (包括default ):

     gcloud preview app versions list 
  2. Stop a specific version: 停止特定版本:

     gcloud preview app versions stop 20160421t052824 
  3. Delete a specific version: 删除特定版本:

     gcloud preview app versions delete 20160421t052824 
  4. Delete an entire service (*this is what you want): 删除整个服务 (*这是你想要的):

     gcloud preview app services delete api 

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 在应用程序结构方面,Google App Engine应用程序中的默认服务/模块可以是非默认服务/模块的兄弟吗? - Can a default service/module in a Google App Engine app be a sibling of a non-default one in terms of folder structure? 如何在本地Google App Engine的非默认模块上访问Google Cloud Endpoints? - How to access Google Cloud Endpoints on non-default module of local Google App Engine? 来自非默认模块的日志消息未显示在Google App Engine控制台中 - log messages from non-default module not showing up in google app engine console 扩展非默认版本的Google App Engine后端 - Scaling non-default version of Google App Engine Backend 在Google应用引擎中将任务添加到非默认队列 - adding task to non-default queue in google app engine 具有非默认App Engine服务的Google Cloud Endpoints v2自定义域 - Google Cloud Endpoints v2 custom domain with non-default app engine service 我可以在非默认版本上使用Google App Engine接收传入邮件吗? - Can I receive incoming mail with Google App Engine on a non-default version? 使用 Google App Engine URL 模式到达非默认服务 - Using Google App Engine URL patterns to reach non-default service 将适用于Java的App Engine托管VM部署到非默认网络 - Deploy App Engine Managed VM for Java to non-default network 测试非默认的App Engine cron作业 - Testing non-default App Engine cron jobs
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM