I am trying to delete cases in PM but I am not able to using the API
http://wiki.processmaker.com/3.1/REST_API_Cases#Delete_Case:DELETE.2Fcases.2F.7Bapp_uid.7D
I have tried this API but it gives me an error like:
[GuzzleHttp\Exception\ClientException]
Client error: `DELETE http://processmaker.app:32768/api/1.0/workflow/cases/50492041658e1dfca544ad3002222462` resulted in a `400 Bad Request` response:
{"error":{"code":400,"message":"Bad Request: You can't delete the case because it's not in Draft status and was already (truncated...)
Yes, I even tried cancelling the case but still the same error