> For the complete documentation index, see [llms.txt](https://django-cloud.gitbook.io/django-cloud-docs/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://django-cloud.gitbook.io/django-cloud-docs/how-it-works/deleting-and-disconnecting.md).

# Deleting a deployment and disconnecting AWS

## Delete a deployment

You can delete a deployment from the dashboard. This removes it from DjangoCloud, together with its release history and settings, and then deletes what it left in AWS:

* its **container service** and **images**, so nothing keeps running or billing,
* its **database**, if it has one, after we save a **final snapshot** of it in your AWS account (named `final-<database name>-<date>`),
* the **source uploads** we stored for it.

{% hint style="warning" %}
Deleting is final. The database snapshot is the only thing kept, and it stays in your AWS account until you delete it there. Snapshots are billed by AWS at storage prices.
{% endhint %}

Removal runs in the background. If your AWS account is disconnected or its environment was already removed, we delete only what we hold ourselves.

## Disconnect your AWS account

Under **Settings → AWS account** in the dashboard you can disconnect your account. DjangoCloud forgets your access key. **Existing deployments keep running on AWS**, but you can no longer deploy new releases until you connect again.

To fully revoke access, also delete or deactivate the access key for the IAM user in the AWS console.

## Revoke CLI tokens

Tokens for the CLI and CI are listed under **Settings → Developer**. Revoke any you no longer use.

## Delete your DjangoCloud account

Open **Settings → Account** and use **Close account**. It cancels your subscription and deletes everything: your deployments, their servers, images and databases (a final database snapshot is taken first), your AWS environment if we host it, and your account. It cannot be undone, and you confirm by typing your email address.


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://django-cloud.gitbook.io/django-cloud-docs/how-it-works/deleting-and-disconnecting.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
