Skip to content

Commit 2a396cb

Browse files
kosabogieedugonshainaraskas
authored
Adds Delete Elastic Cloud on Kubernetes section (#1050)
### [Preview](https://docs-v3-preview.elastic.dev/elastic/docs-content/pull/1050/deploy-manage/uninstall/delete-a-cloud-deployment#elastic-cloud-kubernetes) This PR adds documentation for deleting an Elastic Cloud on Kubernetes (ECK) deployment to the Delete a cloud deployment page. Related issue: elastic/docs-projects#457 --------- Co-authored-by: Edu González de la Herrán <25320357+eedugon@users.noreply.github.com> Co-authored-by: shainaraskas <58563081+shainaraskas@users.noreply.github.com>
1 parent 5c941ad commit 2a396cb

1 file changed

Lines changed: 33 additions & 2 deletions

File tree

deploy-manage/uninstall/delete-a-cloud-deployment.md

Lines changed: 33 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,15 +6,16 @@ mapped_pages:
66
- https://www.elastic.co/guide/en/cloud/current/ec-delete-deployment.html
77
- https://www.elastic.co/guide/en/cloud-enterprise/current/ece-restore-deployment.html
88
- https://www.elastic.co/guide/en/cloud/current/ec-billing-stop.html
9-
navigation_title: "Delete a cloud deployment"
9+
navigation_title: "Delete an orchestrated deployment"
1010
applies_to:
1111
deployment:
1212
ess:
1313
ece:
14+
eck:
1415
serverless:
1516
---
1617

17-
# Delete an Enterprise or Hosted deployment or a Serverless project
18+
# Delete an orchestrated deployment
1819

1920
This page provides instructions for deleting several types of cloud deployments, and outlines key considerations before proceeding.
2021

@@ -90,3 +91,33 @@ To restore a terminated deployment,
9091
Narrow the list by name, ID, or choose from several other filters. To further define the list, use a combination of filters.
9192
3. In the **Deployment Management** section, select **Restore** and then acknowledge the confirmation message.
9293

94+
## {{eck}} [elastic-cloud-kubernetes]
95+
96+
To delete a deployment managed by {{eck}}, remove the corresponding {{es}}, {{kib}}, and any other related custom resources from your Kubernetes cluster. This action deletes all associated pods and their persistent data.
97+
98+
To delete an {{es}} cluster created with {{eck}}:
99+
100+
1. Run the following command to delete the {{es}} custom resource:
101+
102+
```shell
103+
kubectl delete elasticsearch <elasticsearch-resource-name>
104+
```
105+
For example:
106+
107+
```shell
108+
kubectl delete elasticsearch test-deployment
109+
```
110+
:::{warning}
111+
This deletes the custom resource and all associated resources, such as {{es}} nodes, services, and persistent data volumes. By default, this also deletes the data stored in those volumes, but you can [configure](/deploy-manage/deploy/cloud-on-k8s/volume-claim-templates.md#k8s_controlling_volume_claim_deletion) the `volumeClaimDeletePolicy` field in the {{es}} resource manifest to retain the volumes if you plan to recreate the cluster later.
112+
:::
113+
114+
115+
2. If you also deployed {{kib}} or other stack components, delete those resources as well:
116+
117+
```shell
118+
kubectl delete kibana <kibana-resource-name>
119+
```
120+
121+
:::{{tip}}
122+
To fully uninstall {{eck}} from your cluster including all managed resources and the ECK operator, refer to the [](/deploy-manage/uninstall/uninstall-elastic-cloud-on-kubernetes.md) guide.
123+
:::

0 commit comments

Comments
 (0)