For the complete documentation index, see llms.txt.
Skip to main content
Version: 8.9

Delete resourceAdded in 8.6

POST 

/resources/:resourceKey/deletion

Strongly Consistent About endpoint data consistency

Deletes a deployed resource. This can be a process definition, decision requirements definition, or form definition deployed using the deploy resources endpoint. Specify the resource you want to delete in the resourceKey parameter.

Once a resource has been deleted it cannot be recovered. If the resource needs to be available again, a new deployment of the resource is required.

By default, only the resource itself is deleted from the runtime state. To also delete the historic data associated with a resource, set the deleteHistory flag in the request body to true. History deletion is supported for process definitions and decision requirements definitions; for other resource types (forms, generic resources) the flag is ignored and no history is deleted.

Deleting a process definition that is already draining is accepted again and changes nothing: the definition stays DRAINING until its running instances finish. The one repeated deletion that is rejected is one with deleteHistory set to true, because the history cannot be deleted before the drain finishes.

The two supported types differ in how the history is removed. For a decision requirements definition the history is deleted asynchronously via a batch operation whose details are returned in the batchOperation field of the response. For a process definition that still exists in the runtime state, the definition first drains its running instances and its history is deleted asynchronously once the definition is fully removed cluster-wide; no batch operation is returned in the response. If the process definition has already been removed from the runtime state and the deletion is later re-triggered with deleteHistory set to true, a batch operation is created immediately and returned in the batchOperation field.

Request​

Responses​

The resource is deleted. For a process definition that is already draining, the repeated deletion is accepted without effect and the definition stays DRAINING.