I’m using camunda 8.8 and I’m trying to delete process definitions using the API but failing.
I have a process definition with no active instances, I send a POST request to /v2/resources/${resourceKey}/deletion where the resourceKey is the processDefinitionKey.
The request returns 200, re-running the requests rends 404 not found,
yet when calling /v2/process-definitions/search the process definition’s key is still there. More importantly it shows in Operate UI and (after the step with calling resource deletion on it) it is not getting deleted when performing the deletion in the UI.
Is it expected behaviour? Could you tell me whether it is possible to make a process definition disapper from UI by calling an API?
Resource deletions are currently not reflected in secondary storage. As a result you still see the deleted resources in Operate and Tasklist. The resource does not actually exist. Starting an instance of the resource will yield an error.
Current limitations:
There’s no immediate workaround to force removal from Operate UI after API deletion
The UI deletion might also be affected after using the API deletion (as you observed)
Verification:
To confirm the deletion worked, try creating a new process instance with that process definition key - it should fail with an error.
This is a known limitation rather than a bug. The process definition is successfully deleted from the engine, but the UI synchronization is delayed.