TRUNK-3094 Add delete/purge for pregram states in the workflow