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?
https://docs.appian.com/suite/help/19.2/monitoring_view.html#bulk-operations
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 .
Hi Anu,
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.
Hi Anu,Long back I have created workflow with the help to few Smart service for deleting process Instances. You need to first get all the Process Instance Id and those instance Ids you need to pass to delete Process Smart Service.There are few smart services available :community.appian.com/.../process-management-servicescommunity.appian.com/.../process-historycommunity.appian.com/.../process-sizing-report-smart-servicescommunity.appian.com/.../process-model-utilitiescommunity.appian.com/.../process-model-details
Thanks,Sandeep
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.
Not sure if this is resolved or no. other than the provided solutions, there is another way to clean all of the process instances from the monitoring tab -> Process Activity. There will be a grey header will be shown once you choose all of instances in the first page that will ask if you want to apply the same action on all of the process instances that have the same applied criteria. Here is a screenshot for your reference