Delete app engine app

12,888 views
Skip to first unread message

Ashton Holmes

unread,
May 9, 2016, 11:39:04 PM5/9/16
to Google App Engine

I have a Google Cloud Platform project with several GCE instances that I use daily. I decided I wanted to mess around with app engine and deployed a sample version of an application that I would now like to get rid of. While I've disabled the app is there any way to delete it without deleting the entire project? I've tried appcfg.sh delete_version appengine-dir -V 1 but I get Bad argument: You must specify a version ID via -V or --version. I've tried doing appcfg.sh delete_version appengine-dir --version=1 but get the same thing. I'm going to be really disappointed if I have to download all the data off of my instances and re-deploy the entire project just to get rid of an app engine app which will never be used again. I am aware this is technically speaking a duplicate question but all of the answers I've found are for older versions of app engine and I just get redirected to the new console which doesn't seem to have the same options.

Ashton Holmes

unread,
May 10, 2016, 3:35:57 AM5/10/16
to Google App Engine
UPDATE: Turns out doing appcfg.sh -A projID -V 1 delete_version appengine-dir works and doesn't give me any of those errors but I get Cannot delete the default version of the default module. I get the feeling I just can't do this at all which I personally find really really dumb.

Zeehad (Cloud Platform Support)

unread,
May 11, 2016, 1:16:01 PM5/11/16
to Google App Engine
Hello Ashton,

While it's not possible to delete the default version of the default module of an App Engine application, you can follow two simple steps to delete the code you've deployed:
  • Deploy a blank app containing only an app.yaml to the default version. The example below shows the minimum required content for app.yaml
    runtime: python27
    threadsafe: true
    handlers:
    - url: /
      script: blank.app
            • Disable the application
            This way you can make sure the code you deployed before is deleted from the cloud, no App Engine application is running on your project and you're not getting billed for anything.

            I hope that helps. Cheers!

            Ashton Holmes

            unread,
            May 11, 2016, 4:01:34 PM5/11/16
            to Google App Engine
            That wasn't really the answer I was looking for. The application currently up is nothing more than an HTML page that says test and I've already disabled it. It's not about removing code it's about removing the application in it's entirety.

            Chad Vincent

            unread,
            May 12, 2016, 4:34:39 PM5/12/16
            to Google App Engine
            You mean the "Delete" button in the web console?

            It's here: https://console.cloud.google.com/iam-admin/projects

            That should give you a list of all projects with the option to delete the project in its entirety.  AppEngine, Cloud Storage, BigQuery, etc.  All of it in a check, click, and confirm.

            Ashton Holmes

            unread,
            May 12, 2016, 4:40:22 PM5/12/16
            to Google App Engine
            No. I have 4 GCE VMs and a DNS zone on the project. Transferring all the data to another project would be a pain. Not to mention my project ID matches my project name exactly with no numbers. ID/name pairs like those are hard to come by and so even if I did take the time to transfer all my data to another project I'd lose the ID.

            Zeehad (Cloud Platform Support)

            unread,
            May 13, 2016, 1:51:29 PM5/13/16
            to Google App Engine
            It's not currently possible to entirely delete an App Engine application without deleting the project. The workaround suggested in my previous message is the closest. I recommend filing a feature request in the Issue Tracker with the required information.

            Ashton Holmes

            unread,
            May 13, 2016, 2:01:30 PM5/13/16
            to Google App Engine
            Alright I'll do that. Thanks for the info. Hopefully they'll add this although since mine is not the first complaint and there's been complaints floating around for years I'd be surprised if this ends up happening.

            Nathaniel Anderson

            unread,
            Jul 9, 2018, 10:24:56 PM7/9/18
            to Google App Engine

            To disable an application; visit the Cloud  Console > App Engine > Settings > Disable Application button

            Joshua Trampier

            unread,
            Feb 13, 2020, 3:18:54 PM2/13/20
            to Google App Engine
            @Cloud Platform Support:

            Nearly four years later, this is still a (dumb) issue. I searched the issue backlog a few different ways, but didn't see a post from @Ashton Holmes, nor a backlog issue that matched this description.

            Desired behavior:  GCP App Engine is the analog to Pivotal Cloud Foundry (PCF). When deploying an app to PCF, I can both stop and delete that app, down to zero apps. I'd like the same for GCP App Engine.
            Current behavior:  Once a default app is deployed to GCP App Engine, you can't delete it. You can turn it off and deploy an app with no code, but you can't delete it.

            The workaround as outlined above is silly. The "delete your whole project and lose all your other work" (!) solution in the Quickstart doc is extreme. This feels like a dishonest, ever-so-small-yet-cumulatively-large billing entrapment, where GCP relies upon the lack of a developer's fastidiousness to earn a few bucks. I don't like feeling suckered by a tutorial.
            Reply all
            Reply to author
            Forward
            0 new messages