Deleting an Application

Find out how to delete an application with OCI Functions.

Note that having deleted an application, you cannot undelete the application later.

For prerequisites and more information, see Deleting Applications.

  • When using the Console to delete applications, note the following points:

    • When you delete an application in the Console, all its functions are also deleted.
    • When you delete an application in the Console, you're always prompted to confirm deletion because you can't undelete an application or function later.

    To delete an application in OCI Functions using the Console:

    1. Sign in to the Console as a functions developer.
    2. Open the navigation menu and click Developer Services. Under Functions, click Applications.
    3. Select the region you're using with OCI Functions.

      We recommend that you use the same region as the Docker registry that's specified in the Fn Project CLI context. See Creating an Fn Project CLI Context to Connect to Oracle Cloud Infrastructure.

    4. Select the compartment specified in the Fn Project CLI context. See Creating an Fn Project CLI Context to Connect to Oracle Cloud Infrastructure.

      The Applications page shows the applications defined in the compartment.

    5. To delete an application, and all the functions that it contains, complete the following steps:

      1. Click the name of the application that you want to delete.
      2. On the Application Detail page, click Delete and confirm that you want to delete the application:

        • If the application doesn't contain any functions, click Delete to confirm that you want to delete the application.
        • If the application does contain functions, a list of the functions in the application is shown. To delete the application, enter DELETE <APPLICATION-NAME> in the text box, and click Delete.

      Deleting an application and all its functions doesn't delete the Docker images on which the functions are based. To delete the images, you must delete them explicitly. For more information, see Deleting and Undeleting an Image.

  • Using the Fn Project CLI

    Tip

    From time to time, new versions of the Fn Project CLI are released. We recommend you regularly check that the latest version is installed. For more information, see Steps to upgrade the Fn Project CLI.

    When using the Fn Project CLI to delete applications, note that you cannot delete an application if it contains functions. If an application contains functions, you must delete the functions first before you can delete the application (see Deleting Functions).

    To delete an application in OCI Functions using the Fn Project CLI:

    1. Log in to your development environment as a functions developer.

    2. Enter the following command to delete the application:

      fn delete app <app-name>

      where <app-name> is the name of the application to delete.

      For example:

      fn delete app acmeapp
    3. Verify that the application has been deleted by entering:

      fn list apps

    Using the OCI CLI

    Use the oci fn application delete command and required parameters to delete an application:

    oci fn application delete --application-id <application-ocid> [OPTIONS]

    For a complete list of flags and variable options for OCI CLI commands, see the Command Line Reference.

  • Run the DeleteApplication operation to delete an application.