Disconnect and clean up
The snyk-broker-config workflows <RESOURCE> delete
commands help you remove resources.
Protections are in place to prevent invalid connection states, so you cannot delete connections that are integrated, and therefore relied upon, by Organizations. A disconnection step is required.
snyk-broker-config workflows connection delete
walks you through the disconnection steps.
For other resources, you must delete the child items before you can delete a parent. A deployment contains connections and credentials references. Connections use credentials references. Each connection may be integrated by means of an integration with one or more Organizations.
snyk-broker-config
commands walk you through this flow and indicate what needs to be done to achieve successful deletion, implementing and enforcing the following rules:
Before you delete a connection, you must disconnect all integrations.
Before you delete a credentials reference, you must delete the connection(s) using it.
Before you deleting a deployment, you must delete all connections and credentials references.
Disconnect a connection
To disconnect an integration, run snyk-broker-config workflows connections disconnect
.
Enter the Organization ID for the Organization from which to disconnect the connection.
Delete a connection
Run snyk-broker-config workflows connections delete
.
Enter the number of the connection you want to delete.
In response to the prompt, type Y and press Enter if you want to disconnect all the Organizations reported as using the connection.
Disconnect integrations
Run snyk-broker-config workflows connections disconnect
.
Enter the connection from which to disconnect.
Press Tab to select (check) an Organization. Press backspace to uncheck.
Last updated
Was this helpful?