Is there any smart way to delete all active process instances? This is for environment cleanup activity .
Thanks in advance
Discussion posts and replies are publicly visible
Do you mean other than going into Designer > Monitoring > select instances > click delete?
Yes , other than going to designer and selecting manually . Is there any other way to delete all instances ?
I'd be really curious to know what your reasons are for avoiding cleanup that way. With that approach, you can delete up to 10,000 instances at a time. How many instances are you needing to delete? Is there a different reason that the approach wouldn't work for you?
Since we run test scripts everyday , it creates lot of instances and we end up with memory issues . Everyday deleting from designer manually is not feasible . I also tried implementing smart service Process Management(Delete Processes) but it doesn't seems to be working . Any help here would be greatly appreciated .
To cancel/ delete processes in bulk, we can use Cancel Processes/ Delete Processes smart service. These are custom plug-ins available under process management services, please take a look at this link: https://community.appian.com/b/appmarket/posts/process-management-services
Please let me know if you have any queries.
In that case, the answer is to set the cleanup settings for your process appropriately. It's easy to automate the cleanup of expected processes by choosing your desired behavior in the data maintenance tab https://docs.appian.com/suite/help/19.2/process-model-object.html#data-management-tab . Simply set your processes to automatically get cleaned up on your desired cadence, and you shouldn't need any manual intervention.
© 2023 Appian. All rights reserved.