Skip to content

Connection delete package

The connection delete package deletes a connection and all its related assets.

Soft-delete (archive) assets

1.0.0

To soft-delete (archive) all assets in a connection:

Archive assets
1
2
3
4
Workflow archive = ConnectionDelete.creator( // (1)
                "default/snowflake/1234567890", // (2)
                false); // (3)
WorkflowResponse response = archive.run(); // (4)
  1. The ConnectionDelete package will create a workflow to delete a connection and its assets using the creator() method.
  2. You must provide the qualifiedName of the connection to delete...
  3. ...and to archive (soft-delete) the connection and its assets, specify false as the second parameter.
  4. You can then run the workflow using the run() method on the object you've created.

    Workflows run asynchronously

    Remember that workflows run asynchronously. See the packages and workflows introduction for details on how you can check the status and wait until the workflow has been completed.

Coming soon

Hard-delete (purge) assets

Permanent and irreversible

A hard-delete (purge) is permanent and irreversible. Be certain that you want to entirely remove all of the assets in a connection before running in this way!

1.0.0

To hard-delete (purge) all assets in a connection:

Archive assets
1
2
3
4
Workflow archive = ConnectionDelete.creator( // (1)
                "default/snowflake/1234567890", // (2)
                true); // (3)
WorkflowResponse response = archive.run(); // (4)
  1. The ConnectionDelete package will create a workflow to delete a connection and its assets using the creator() method.
  2. You must provide the qualifiedName of the connection to delete...
  3. ...and to purge (hard-delete) the connection and its assets, specify true as the second parameter.
  4. You can then run the workflow using the run() method on the object you've created.

    Workflows run asynchronously

    Remember that workflows run asynchronously. See the packages and workflows introduction for details on how you can check the status and wait until the workflow has been completed.

Coming soon