25.4.9 Removing Development Instances

Remove Development Mode workflow instances and their related tasks after testing.

In Development Mode, starting a workflow uses the In Development version if available. Otherwise, the Active version is used. During development, you typically create many workflow instances for testing purposes. When you want to clean up these testing artifacts, call the REMOVE_DEVELOPMENT_INSTANCES procedure in the APEX_WORKFLOW package. It immediately purges any workflow instances created in Development Mode without archiving them. Since task instances created by workflows are dependent artifacts, this procedure also immediately purges any tasks related to these deleted workflow instances without archiving them.

Task instances created outside of Development Mode cannot be deleted. The workflow administrator can cancel them, and the daily job that purges canceled workflows and tasks removes them within 24 hours.

Tip:

Since task and workflow instances are removed when an application is deleted, you can use a Working Copy of an application to perform tests that might result in creating new workflow and task instances. When you delete the working copy, any workflow and task instances it created are deleted, too.