Firebase Cloud Functions - Functions that has been deleted from code, aren't being deleted from CF











up vote
0
down vote

favorite












The Issue



When I remove a function from the cloud functions and redeploy the rest, I get a message in the terminal:



The following functions are found in your project but do not exist in your 
local source code:
function1(us-central1)
function2(us-central1)
Would you like to proceed with deletion? Selecting no will continue the rest of the deployments. (y/N)


I type "y". Once I redeploy again, I get the same message, over and over. What am I missing?



Depenencies



"firebase-admin": "~6.0.0",
"firebase-functions": "^2.1.0",









share|improve this question






















  • If something about the Firebase CLI doesn't work the way you expect, file a bug report with the steps that anyone can take to reproduce the problem. Make sure you have the latest version of firebase-tools. firebase.google.com/support/contact/bugs-features
    – Doug Stevenson
    Nov 12 at 17:43















up vote
0
down vote

favorite












The Issue



When I remove a function from the cloud functions and redeploy the rest, I get a message in the terminal:



The following functions are found in your project but do not exist in your 
local source code:
function1(us-central1)
function2(us-central1)
Would you like to proceed with deletion? Selecting no will continue the rest of the deployments. (y/N)


I type "y". Once I redeploy again, I get the same message, over and over. What am I missing?



Depenencies



"firebase-admin": "~6.0.0",
"firebase-functions": "^2.1.0",









share|improve this question






















  • If something about the Firebase CLI doesn't work the way you expect, file a bug report with the steps that anyone can take to reproduce the problem. Make sure you have the latest version of firebase-tools. firebase.google.com/support/contact/bugs-features
    – Doug Stevenson
    Nov 12 at 17:43













up vote
0
down vote

favorite









up vote
0
down vote

favorite











The Issue



When I remove a function from the cloud functions and redeploy the rest, I get a message in the terminal:



The following functions are found in your project but do not exist in your 
local source code:
function1(us-central1)
function2(us-central1)
Would you like to proceed with deletion? Selecting no will continue the rest of the deployments. (y/N)


I type "y". Once I redeploy again, I get the same message, over and over. What am I missing?



Depenencies



"firebase-admin": "~6.0.0",
"firebase-functions": "^2.1.0",









share|improve this question













The Issue



When I remove a function from the cloud functions and redeploy the rest, I get a message in the terminal:



The following functions are found in your project but do not exist in your 
local source code:
function1(us-central1)
function2(us-central1)
Would you like to proceed with deletion? Selecting no will continue the rest of the deployments. (y/N)


I type "y". Once I redeploy again, I get the same message, over and over. What am I missing?



Depenencies



"firebase-admin": "~6.0.0",
"firebase-functions": "^2.1.0",






node.js typescript google-cloud-functions






share|improve this question













share|improve this question











share|improve this question




share|improve this question










asked Nov 12 at 17:34









Eliya Cohen

1,7951435




1,7951435












  • If something about the Firebase CLI doesn't work the way you expect, file a bug report with the steps that anyone can take to reproduce the problem. Make sure you have the latest version of firebase-tools. firebase.google.com/support/contact/bugs-features
    – Doug Stevenson
    Nov 12 at 17:43


















  • If something about the Firebase CLI doesn't work the way you expect, file a bug report with the steps that anyone can take to reproduce the problem. Make sure you have the latest version of firebase-tools. firebase.google.com/support/contact/bugs-features
    – Doug Stevenson
    Nov 12 at 17:43
















If something about the Firebase CLI doesn't work the way you expect, file a bug report with the steps that anyone can take to reproduce the problem. Make sure you have the latest version of firebase-tools. firebase.google.com/support/contact/bugs-features
– Doug Stevenson
Nov 12 at 17:43




If something about the Firebase CLI doesn't work the way you expect, file a bug report with the steps that anyone can take to reproduce the problem. Make sure you have the latest version of firebase-tools. firebase.google.com/support/contact/bugs-features
– Doug Stevenson
Nov 12 at 17:43












1 Answer
1






active

oldest

votes

















up vote
0
down vote













Turns out it's a known issue that was recently reported.



To fix this, and I quote Firebase's support:




I'm sorry for the inconveniences, that is a known issue that was reported recently, please check this link: https://github.com/firebase/firebase-tools/issues/982 . The fix is ready and should be available in the next release of the firebase-tools package. In the meantime there are two alternatives:




  • add the "--force" option:
    firebase deploy --force --only functions


  • use the "delete" command:
    firebase functions:delete funcName1 functName2 ...



You can check more options like this:




  • firebase deploy --help


  • firebase functions:delete --help








share|improve this answer





















    Your Answer






    StackExchange.ifUsing("editor", function () {
    StackExchange.using("externalEditor", function () {
    StackExchange.using("snippets", function () {
    StackExchange.snippets.init();
    });
    });
    }, "code-snippets");

    StackExchange.ready(function() {
    var channelOptions = {
    tags: "".split(" "),
    id: "1"
    };
    initTagRenderer("".split(" "), "".split(" "), channelOptions);

    StackExchange.using("externalEditor", function() {
    // Have to fire editor after snippets, if snippets enabled
    if (StackExchange.settings.snippets.snippetsEnabled) {
    StackExchange.using("snippets", function() {
    createEditor();
    });
    }
    else {
    createEditor();
    }
    });

    function createEditor() {
    StackExchange.prepareEditor({
    heartbeatType: 'answer',
    convertImagesToLinks: true,
    noModals: true,
    showLowRepImageUploadWarning: true,
    reputationToPostImages: 10,
    bindNavPrevention: true,
    postfix: "",
    imageUploader: {
    brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
    contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
    allowUrls: true
    },
    onDemand: true,
    discardSelector: ".discard-answer"
    ,immediatelyShowMarkdownHelp:true
    });


    }
    });














     

    draft saved


    draft discarded


















    StackExchange.ready(
    function () {
    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53267302%2ffirebase-cloud-functions-functions-that-has-been-deleted-from-code-arent-bei%23new-answer', 'question_page');
    }
    );

    Post as a guest















    Required, but never shown

























    1 Answer
    1






    active

    oldest

    votes








    1 Answer
    1






    active

    oldest

    votes









    active

    oldest

    votes






    active

    oldest

    votes








    up vote
    0
    down vote













    Turns out it's a known issue that was recently reported.



    To fix this, and I quote Firebase's support:




    I'm sorry for the inconveniences, that is a known issue that was reported recently, please check this link: https://github.com/firebase/firebase-tools/issues/982 . The fix is ready and should be available in the next release of the firebase-tools package. In the meantime there are two alternatives:




    • add the "--force" option:
      firebase deploy --force --only functions


    • use the "delete" command:
      firebase functions:delete funcName1 functName2 ...



    You can check more options like this:




    • firebase deploy --help


    • firebase functions:delete --help








    share|improve this answer

























      up vote
      0
      down vote













      Turns out it's a known issue that was recently reported.



      To fix this, and I quote Firebase's support:




      I'm sorry for the inconveniences, that is a known issue that was reported recently, please check this link: https://github.com/firebase/firebase-tools/issues/982 . The fix is ready and should be available in the next release of the firebase-tools package. In the meantime there are two alternatives:




      • add the "--force" option:
        firebase deploy --force --only functions


      • use the "delete" command:
        firebase functions:delete funcName1 functName2 ...



      You can check more options like this:




      • firebase deploy --help


      • firebase functions:delete --help








      share|improve this answer























        up vote
        0
        down vote










        up vote
        0
        down vote









        Turns out it's a known issue that was recently reported.



        To fix this, and I quote Firebase's support:




        I'm sorry for the inconveniences, that is a known issue that was reported recently, please check this link: https://github.com/firebase/firebase-tools/issues/982 . The fix is ready and should be available in the next release of the firebase-tools package. In the meantime there are two alternatives:




        • add the "--force" option:
          firebase deploy --force --only functions


        • use the "delete" command:
          firebase functions:delete funcName1 functName2 ...



        You can check more options like this:




        • firebase deploy --help


        • firebase functions:delete --help








        share|improve this answer












        Turns out it's a known issue that was recently reported.



        To fix this, and I quote Firebase's support:




        I'm sorry for the inconveniences, that is a known issue that was reported recently, please check this link: https://github.com/firebase/firebase-tools/issues/982 . The fix is ready and should be available in the next release of the firebase-tools package. In the meantime there are two alternatives:




        • add the "--force" option:
          firebase deploy --force --only functions


        • use the "delete" command:
          firebase functions:delete funcName1 functName2 ...



        You can check more options like this:




        • firebase deploy --help


        • firebase functions:delete --help









        share|improve this answer












        share|improve this answer



        share|improve this answer










        answered Nov 13 at 11:50









        Eliya Cohen

        1,7951435




        1,7951435






























             

            draft saved


            draft discarded



















































             


            draft saved


            draft discarded














            StackExchange.ready(
            function () {
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53267302%2ffirebase-cloud-functions-functions-that-has-been-deleted-from-code-arent-bei%23new-answer', 'question_page');
            }
            );

            Post as a guest















            Required, but never shown





















































            Required, but never shown














            Required, but never shown












            Required, but never shown







            Required, but never shown

































            Required, but never shown














            Required, but never shown












            Required, but never shown







            Required, but never shown







            Popular posts from this blog

            How to change which sound is reproduced for terminal bell?

            Can I use Tabulator js library in my java Spring + Thymeleaf project?

            Title Spacing in Bjornstrup Chapter, Removing Chapter Number From Contents