Cannot delete the process from after the new diagram deploy

I’m trying to delete the process instance from the diagram, using the axios HTTP client, here is how my request looks like:

async (endpoint, params) => {

  // endpoint = /process-instance/056a5862-df94-11e9-a090-42010af00025
  // params = undefined;

  const resp = await axios.delete(
    workflowUrl + endpoint,
      headers: {

But I received the following error:

Error: Request failed with status code 404
server | at createError (/app/node_modules/axios/lib/core/createError.js:16:15)
server | at settle (/app/node_modules/axios/lib/core/settle.js:17:12)
server | at IncomingMessage.handleStreamEnd (/app/node_modules/axios/lib/adapters/http.js:237:11)
server | at IncomingMessage.emit (events.js:203:15)
server | at endReadableNT (_stream_readable.js:1145:12)

Processes that are in the new diagram could be deleted successfully. What could be configured wrong?

@Ivan_Shvets can you elaborate more on this what you are trying to do?

Hi @Ivan_Shvets,

Error code 404 means process instance with given id does not exist.
Make sure that the process instance you are trying to delete exists as a running instance. You can use cockpit app to search for it by Id.

In case the process instance has been ended and you are looking to delete it from the history then, below method should be used

DELETE /history/process-instance/{id}