Deletion of function from function app

Souvik Sardar 6 Reputation points
2021-08-11T13:15:08.78+00:00

Hi,

I created one function app in Azure and I published one function from Visual Studio 2019 using zip deployment. Under 'Functions' pane of function app, I am unable to delete the function. It is showing 'our app is currently in read only mode because you are running from a package file. To make any changes update the content in your zip file and WEBSITE_RUN_FROM_PACKAGE app setting'

How can I delete that function without deleting the function app from portal?

I tried the below but I am unable to delete -

  1. Deleted the .zip file in Kudu and tried to delete the function
  2. I changed WEBSITE_RUN_FROM_PACKAGE app setting to 0 and tried to delete but it fails!
Azure Functions
Azure Functions
An Azure service that provides an event-driven serverless compute platform.
4,116 questions
{count} votes

2 answers

Sort by: Most helpful
  1. MayankBargali-MSFT 67,691 Reputation points
    2021-08-13T04:37:33.507+00:00

    @Anonymous After you publish code from Visual Studio, Azure portal will set functions to be Read Only to prevent us editing pre-compiled assets in portal.
    To delete any of your function in function app the suggestion is to remove the unwanted functions from your code and enable the "Remove additional files at destination" option in profile settings and redeploy your code.

    122888-image.png

    But if you don't want to have any triggers then you can update the WEBSITE_RUN_FROM_PACKAGE to 0 and try deleting the function. I have tested the same at my end and couldn't observe any error. The issue could occur if you have done some changes from Kudo that would cause this behaviour. Can you navigate to Activity logs of your function app to know the cause of the failure.


  2. Sergio Solorzano 26 Reputation points
    2021-11-26T03:52:41.14+00:00

    The suggested delete option for this solution is no longer available152778-opt.png

    0 comments No comments