Pivotal Web Services: Hosted
When attempting to delete a service instance, in some cases, it will fail. you may see error messages like these:
Server error, status code: 502, error code: 10001, message: Service instance <service-name>: Service broker error: Addon service instance '<guid>' has active bindings.
When you run`cf services`, for your service instance, You will also see `delete failed` listed as the "last operation".
Ultimately what happens is that the state of your services in Cloud Foundry are out of sync with the state of your service stored by the service provider. When this happens, the service provider may refuse to delete the service and thus cause the `cf delete-service` request fails.
The exact cause as to why the state gets out of sync is not currently known. However, we do not believe that this is due to the behavior of end users.
When a service gets into this state, it is not possible for the end user to resolve the issue. Rectifying the issue requires administrator action. If you find yourself in this situation, please open a support ticket by emailing firstname.lastname@example.org and including the following information.
- Your Org name
- Your Space name
- Your Space GUID. You can obtain this by running `cf space <SPACENAME> --guid`
- The name or names of the service instance that you'd like to have deleted
- The service GUIDs for each service instance to be deleted. You can obtain this by running `cf service <SERVICE_INSTANCE_NAME> --guid`
- Run `cf services` from the Org and Space you listed above and take a screenshot of the output. Pivotal will only delete services where the "last operation" listed in the screenshot indicates that the delete operation has failed. This is to prevent potential data loss.
Upon receipt of your support ticket, Pivotal will proceed to delete the service instance that you have listed. Requested service instance delete confirmation will be sent through the Pivotal support ticket.
Once a service instance has been deleted, it is not possible for Pivotal to recover any data from the service nor is it possible for you to access the management console of the deleted services or any backups made through the service provider's web UI. If you need to retain information from the database or anything accessible through the service provider's web UI, please do this before you submit your request to delete the service.