Skip to content

Commit

Permalink
Add how-to guide on application deletion (#655)
Browse files Browse the repository at this point in the history
* 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 <[email protected]>

* Update docs/content/deploy-apps/delete-applications/index.md

Co-authored-by: Aaron Crawfis <[email protected]>

* Update docs/content/deploy-apps/delete-applications/index.md

Co-authored-by: Aaron Crawfis <[email protected]>

* Update docs/content/deploy-apps/delete-applications/index.md

Co-authored-by: Aaron Crawfis <[email protected]>

* Update docs/content/deploy-apps/delete-applications/index.md

Co-authored-by: Aaron Crawfis <[email protected]>

* Apply suggestions from code review

Co-authored-by: Aaron Crawfis <[email protected]>

* 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 <[email protected]>
  • Loading branch information
Reshrahim and AaronCrawfis authored Aug 16, 2023
1 parent a7567f9 commit 2dcd1d5
Show file tree
Hide file tree
Showing 2 changed files with 47 additions and 1 deletion.
46 changes: 46 additions & 0 deletions docs/content/deploy-apps/delete-applications/index.md
Original file line number Diff line number Diff line change
@@ -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 <appname>
```

This will delete the following resources from the Radius environment

1. All the resources created by Radius on the Kubernetes cluster under the `<namespace-name>-<app-name>` 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 %}}


2 changes: 1 addition & 1 deletion docs/content/deploy-apps/deploy-applications/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -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" >}}).


0 comments on commit 2dcd1d5

Please sign in to comment.