From 2dcd1d5d716bbf14dfe10de8f3ae2fded59367a6 Mon Sep 17 00:00:00 2001 From: Reshma Abdul Rahim <61033581+Reshrahim@users.noreply.github.com> Date: Wed, 16 Aug 2023 09:25:28 -0400 Subject: [PATCH] Add how-to guide on application deletion (#655) * Adding a deploying application section * add deploy applications page * Address feedback * Address feedback * Fix typo * Fix typo * Removing the eg o/p * Address comments * Address comments * Fix space * Add a page on deletion * Fix weight * Add how to guide on delete application * Update docs/content/deploy-apps/delete-applications/index.md Co-authored-by: Aaron Crawfis * Update docs/content/deploy-apps/delete-applications/index.md Co-authored-by: Aaron Crawfis * Update docs/content/deploy-apps/delete-applications/index.md Co-authored-by: Aaron Crawfis * Update docs/content/deploy-apps/delete-applications/index.md Co-authored-by: Aaron Crawfis * Update docs/content/deploy-apps/delete-applications/index.md Co-authored-by: Aaron Crawfis * Apply suggestions from code review Co-authored-by: Aaron Crawfis * Add text on existing resource * Update docs/content/deploy-apps/deploy-applications/index.md * Update the delete command * Fix codetab formatting * Code tab fix * change steps as headers * Address feedbac --------- Co-authored-by: Aaron Crawfis --- .../deploy-apps/delete-applications/index.md | 46 +++++++++++++++++++ .../deploy-apps/deploy-applications/index.md | 2 +- 2 files changed, 47 insertions(+), 1 deletion(-) create mode 100644 docs/content/deploy-apps/delete-applications/index.md 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 +