Bulk Deleting Flow Data
  • 12 Mar 2021
  • 1 Minute to read
  • Dark
    Light

Bulk Deleting Flow Data

  • Dark
    Light

Article Summary

Example Lab Article
While Example Lab projects are resources for public use, articles and assets are not actively maintained. Screenshots and features are from the specified version below. These references may become dated as new versions are released.


Overview

Example Lab Details

Version6.4.0
Root FolderExample Lab - Clear Stored Work Flows
Modules None
DependenciesNone

This Example Lab project demonstrates how to bulk delete Flow data stored in the WorkFlow.


Explanation

This project contains a Flow that uses the Get All step in order to obtain a list of Flow data from the WorkFlow. The output data from the Get All step is then passed into a ForEach Step. The ForEach step then iterates through each item in the list and deletes it. Each item is deleted by using the Raw SQL Step. The Raw SQL Step contains the command "delete FROM flow_state_storage_data where flow_tracking_id='Item.primary_flow_tracking_id'" which deletes each item run through the ForEach step.

Reference Articles



Project Download

The examples attached were developed to be instructional and were not developed as officially supported components. For more information or to engage our service team to develop fully supported, production quality solutions, please contact services@decisions.com. Import the project below to a Decisions environment on version 6.4.0 or later using our Importing/Exporting article.





Was this article helpful?