flow-framework icon indicating copy to clipboard operation
flow-framework copied to clipboard

[FEATURE] Add a parameter to force deletion of workflow state document when a template is deleted

Open dbwiddis opened this issue 1 year ago • 0 comments
trafficstars

Coming from https://github.com/opensearch-project/flow-framework/pull/689#issuecomment-2086247313

Is your feature request related to a problem?

Presently when a template is deleted, the workflow state is not deleted if resources exist.

However, a user may wish to delete the state document anyway, and track the resources separately.

What solution would you like?

Add a REST path parameter such as "force" or "delete_state" or similar (defaulting to false) to delete the state document when the template is deleted.

What alternatives have you considered?

A separate API to delete the state document.

A combined API to delete the template and state together.

dbwiddis avatar Apr 30 '24 19:04 dbwiddis