1
0
mirror of https://github.com/openshift/openshift-docs.git synced 2026-02-07 00:48:01 +01:00
Files
openshift-docs/modules/developer-cli-odo-deleting-an-application.adoc
2020-08-10 20:18:09 +00:00

59 lines
1.4 KiB
Plaintext

// Module included in the following assemblies:
//
// * cli_reference/developer_cli_odo/creating-a-single-component-application-with-odo.adoc
// * cli_reference/developer_cli_odo/creating-an-application-with-a-database.adoc
// * cli_reference/developer_cli_odo/creating-a-multicomponent-application-with-odo.adoc
[id="deleting-an-application_{context}"]
= Deleting an application
[IMPORTANT]
====
Deleting an application will delete all components associated with the application.
====
.Procedure
. List the applications in the current project:
+
[source,terminal]
----
$ odo app list
----
+
.Example output
[source,terminal]
----
The project '<project_name>' has the following applications:
NAME
app
----
. List the components associated with the applications. These components will be deleted with the application:
+
[source,terminal]
----
$ odo component list
----
+
.Example output
[source,terminal]
----
APP NAME TYPE SOURCE STATE
app nodejs-nodejs-ex-elyf nodejs file://./ Pushed
----
. Delete the application:
+
[source,terminal]
----
$ odo app delete <application_name>
----
+
.Example output
[source,terminal]
----
? Are you sure you want to delete the application: <application_name> from project: <project_name>
----
. Confirm the deletion with `Y`. You can suppress the confirmation prompt using the `-f` flag.