diff --git a/docs/content/deploy-apps/delete-applications/index.md b/docs/content/deploy-apps/delete-applications/index.md new file mode 100644 index 000000000..8e431c58c --- /dev/null +++ b/docs/content/deploy-apps/delete-applications/index.md @@ -0,0 +1,46 @@ +--- +type: docs +title: "How-To: Delete an application from a Radius environment" +linkTitle: "Delete applications" +description: "Learn how to delete a Radius application" +weight: 300 +categories: "How-To" +tags: ["delete"] +--- + +## Pre-requisites + +A [deployed application]({{< ref deploy-apps >}}) in a Radius environment. + +## Step 1: Delete the Radius application from the environment + +You can delete the Radius application using the [`rad app delete`]({{< ref rad_application_delete >}}) command: + +```bash +rad app delete +``` + +This will delete the following resources from the Radius environment + +1. All the resources created by Radius on the Kubernetes cluster under the `-` namespace +2. All the resources provisioned by Recipes + +## Step 2: Delete any cloud/platform resources + +AWS, Azure, Kubernetes, and any other cloud/platform resources that were deployed alongside your Radius application and not as part of a Recipe need to be deleted as a separate step. + +{{< tabs Azure AWS Kubernetes >}} + +{{% codetab %}} +Azure resources can be deleted via the [Azure portal](https://portal.azure.com/) or the [Azure CLI](https://learn.microsoft.com/cli/azure/resource?view=azure-cli-latest#az-resource-delete). +{{% /codetab %}} + +{{% codetab %}} + AWS resources can be deleted via the [AWS console](https://aws.amazon.com/console/) or the [AWS CLI](https://docs.aws.amazon.com/cli/latest/reference/cloudcontrol/delete-resource.html). +{{% /codetab %}} + +{{% codetab %}} +Kubernetes resources can be deleted via [kubectl delete](https://kubernetes.io/docs/reference/kubectl/cheatsheet/#deleting-resources). +{{% /codetab %}} + + \ No newline at end of file diff --git a/docs/content/deploy-apps/deploy-applications/index.md b/docs/content/deploy-apps/deploy-applications/index.md index b2ad1d58a..717b43ed0 100644 --- a/docs/content/deploy-apps/deploy-applications/index.md +++ b/docs/content/deploy-apps/deploy-applications/index.md @@ -38,4 +38,4 @@ Parameters can be included as part of `rad run` or `rad deploy` via the `-p/--pa This will deploy the application to the created Radius environment injecting the parameters into the application. You can find more examples of deploying applications with parameters [here]({{< ref "rad_deploy#examples" >}}). - \ No newline at end of file +