This error is thrown due to deployment containing a vm that was deliberately ignored meaning the command below was executed previously
bosh -d <service-instance-deployment> ignore <vm>
You can check if a vm is ignored using
bosh -d <service-instance-deployment> instances --details
check the column
ignore and see if this is set to
trueIf a vm is marked as ignored any bosh command on this vm will be ignored. For more info, please see
doc .
bosh director won't let you delete a deployment if one of the vm on the deployment is ignored.
To resolve this simply unignore the ignored vm
bosh -d <service-instance-deployment> unignore vm
The command above tell bosh director to include this vm to be affected by bosh commands. For more info on unignore, please see
doc.
Then retry deleting the deployment.