---
title: "Clean up resources"
description: "Learn how to remove AWS CloudFormation, Grafana, and Aerospike Cloud resources used in the monitoring tutorial."
---

# Clean up resources

> For the complete documentation index see: [llms.txt](https://aerospike.com/docs/llms.txt)
> 
> All documentation pages available in markdown.

This page shows you how to remove the resources created during this tutorial.

## Delete the CloudFormation stack

The CloudFormation stack created the ECS cluster, Fargate task, IAM roles, and CloudWatch log group. Deleting the stack removes all of these resources.

1.  Delete the stack:
    
    Terminal window
    
    ```shell
    aws cloudformation delete-stack --stack-name alloy-monitoring
    ```
    
2.  Wait for deletion to complete (typically 2-3 minutes):
    
    Terminal window
    
    ```shell
    aws cloudformation wait stack-delete-complete --stack-name alloy-monitoring
    ```
    
3.  Verify the stack is deleted:
    
    Terminal window
    
    ```shell
    aws cloudformation describe-stacks --stack-name alloy-monitoring
    ```
    
    You should see an error: “Stack with id alloy-monitoring does not exist”.
    

## Remove Grafana Cloud resources (optional)

If you no longer need the Grafana Cloud dashboards:

1.  Open your Grafana Cloud instance at `https://YOURNAME.grafana.net`.
    
2.  Navigate to **Dashboards**.
    
3.  Select the **Namespace View** dashboard.
    
4.  Click **Dashboard settings** (gear icon) > **Delete dashboard**.
    

Your Grafana Cloud free tier account can remain active at no cost. You only need to delete it if you want to remove it entirely.

## Stop or terminate EC2 instances (if applicable)

If you created an EC2 instance during the Aerospike Cloud quickstart:

1.  Open the [EC2 Console](https://console.aws.amazon.com/ec2/).
    
2.  Select your instance.
    
3.  Choose **Instance state** > **Stop instance** to pause costs while preserving the instance, or **Terminate instance** to delete it permanently.
    

## Delete the Aerospike Cloud cluster (optional)

If you created a cluster specifically for this tutorial and no longer need it:

1.  Open the [Aerospike Cloud Console](https://console.aerospike.com/).
    
2.  In the sidebar, click **Clusters**.
    
3.  Find your cluster and click the trash icon on the right side of the cluster row.
    
4.  In the **Decommission \[cluster-name\]?** dialog, read the warning about permanent deletion.
    
5.  Type the cluster name in uppercase in the confirmation field.
    
6.  Click **Permanently decommission**.
    

Decommissioning permanently deletes the cluster and all associated resources. This action is irreversible.

::: undefined
-   I’ve cleaned up my resources.
:::

Share

Congratulations on completing this tutorial! Share your achievement with the world and let everyone know about your newly acquired skills.

[](https://www.linkedin.com/feed/?shareActive&mini=true&text=Just%20set%20up%20monitoring%20for%20my%20Aerospike%20Cloud%20cluster%20with%20Grafana%20Alloy%20and%20Grafana%20Cloud!%20%F0%9F%93%8A%0A%0ANo%20Prometheus%20or%20Grafana%20to%20manage%20-%20just%20a%20lightweight%20ECS%20container%20pushing%20to%20Grafana%20Cloud.%0A%0A%23AerospikeCloud%20%23Grafana%20%23GrafanaAlloy%20%23Monitoring%20%23DevOps%0A%0Ahttps%3A%2F%2Faerospike.com%2Fdocs%2Fcloud%2Fmonitor-cloud-with-grafana "Post to LinkedIn")[](https://bsky.app/intent/compose?text=Just%20set%20up%20monitoring%20for%20my%20Aerospike%20Cloud%20cluster%20with%20Grafana%20Alloy%20and%20Grafana%20Cloud!%20%F0%9F%93%8A%0A%0ANo%20Prometheus%20or%20Grafana%20to%20manage%20-%20just%20a%20lightweight%20ECS%20container%20pushing%20to%20Grafana%20Cloud.%0A%0A%23AerospikeCloud%20%23Grafana%20%23GrafanaAlloy%20%23Monitoring%20%23DevOps%0A%0Ahttps%3A%2F%2Faerospike.com%2Fdocs%2Fcloud%2Fmonitor-cloud-with-grafana "Post to BlueSky")[](https://twitter.com/intent/tweet?text=Just%20set%20up%20monitoring%20for%20my%20Aerospike%20Cloud%20cluster%20with%20Grafana%20Alloy%20and%20Grafana%20Cloud!%20%F0%9F%93%8A%0A%0ANo%20Prometheus%20or%20Grafana%20to%20manage%20-%20just%20a%20lightweight%20ECS%20container%20pushing%20to%20Grafana%20Cloud.%0A%0A%23AerospikeCloud%20%23Grafana%20%23GrafanaAlloy%20%23Monitoring%20%23DevOps%0A%0Ahttps%3A%2F%2Faerospike.com%2Fdocs%2Fcloud%2Fmonitor-cloud-with-grafana "Post to Twitter")

::: undefined
-   To learn more about available metrics, see the [Metrics Reference](https://aerospike.com/docs/database/reference/metrics).
    
-   To explore key metrics to monitor, see [Key metrics to monitor](https://aerospike.com/docs/database/observe/key-metrics).
    
-   To learn more about the Cloud API, see [Using Cloud APIs](https://aerospike.com/docs/cloud/manage-apis/cloud-api-use).
    
-   To automate scaling with webhooks, see the [AWS Lambda documentation](https://docs.aws.amazon.com/lambda/) or your cloud provider’s serverless documentation.
:::

[Previous  
Scale with the Cloud API](https://aerospike.com/docs/cloud/monitor-cloud-with-grafana/step/3/part/1/scale-with-api)