-
Notifications
You must be signed in to change notification settings - Fork 34
/
Copy path_tshoot-tech-delete-all.html.md.erb
34 lines (28 loc) · 1.41 KB
/
_tshoot-tech-delete-all.html.md.erb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
This errand uses the Cloud Controller API to delete all instances of your broker’s
service offering in every Cloud Foundry org and space. It only deletes instances
the Cloud Controller knows about.
It does not delete orphan BOSH deployments.
<p class="note"><strong>Note</strong>:
Orphan BOSH deployments do not correspond to a known service instance.
While rare, orphan deployments can occur. Use the <code>orphan-deployments</code>
errand to identify them.</p>
<br>
The `delete-all-service-instances` errand does the following:
1. Unbinds all apps from the service instances.
1. Deletes all service instances sequentially. Each service instance deletion includes:
1. Running any pre-delete errands
1. Deleting the BOSH deployment of the service instance
1. Removing any ODB-managed secrets from Credhub
1. Checking for instance deletion failure, which results in the errand failing immediately
1. Determines whether any instances have been created while the errand was running.
If new instances are detected, the errand returns an error.
In this case, Pivotal recommends running the errand again.
<p class="note warning">
<strong>WARNING:</strong> Use extreme caution when running this errand.
You should only use it when you want to totally destroy all of the on-demand service
instances in an environment.</p>
<br>
To run the errand, run the following command:
```
bosh -d service-instance_GUID delete-deployment
```