Delete All Versions of an Application

delete

/process/api/v1/design/dmnApplications/{applicationName}

Delete an application including all its versions and snapshots. Deactivate the application before you delete it.

Request

Path Parameters

There's no request body for this operation.

Back to Top

Response

Supported Media Types

200 Response

Application deleted
Body ()
Root Schema : Applications
Type: object
Show Source
Nested Schema : items
Type: array
Show Source
Nested Schema : Application
Type: object
Show Source
Nested Schema : Activation
Type: object
Show Source
Nested Schema : assets
Type: array
Show Source
Nested Schema : Audit
Type: object
Show Source
Nested Schema : snapshots
Type: array
Show Source
Nested Schema : Assets
Type: object
Show Source
Nested Schema : Snapshots
Type: object
Show Source
Nested Schema : items
Type: array
Show Source
Nested Schema : Snapshot
Type: object
Show Source

401 Response

Unauthorized

404 Response

Application not found.

409 Response

Application must be deactivated before it can be deleted.

500 Response

An internal error occurred.
Back to Top

Examples

The following example shows how to delete all versions of a decision application by submitting a DELETE request on the REST resource using cURL. For more information about cURL, see cURL Access. For more information about endpoint URL structure, see Send Requests.

Example: cURL command to delete all versions of application Invoicing

curl -X 'DELETE' \
  'https://<URL>/decision/api/v1/design/dmnApplications/Invoicing' \
  -H 'accept: application/json'

Example: Response body of 200 successful response in JSON format

{
  "items": [
    {
      "id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
      "name": "string",
      "version": "string",
      "title": "string",
      "description": "string",
      "audit": {
        "createdBy": "string",
        "createdOn": "2024-06-13T16:14:13.581Z"
      },
      "assets": [
        {
          "id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
          "name": "string",
          "type": "string"
        }
      ],
      "snapshots": [
        {
          "items": [
            {
              "id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
              "name": "string",
              "description": "string",
              "audit": {
                "createdBy": "string",
                "createdOn": "2024-06-13T16:14:13.581Z"
              },
              "status": "IN_PROGRESS",
              "validation": "IN_PROGRESS"
            }
          ],
          "count": 0
        }
      ],
      "activation": {
        "id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
        "snapshotId": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
        "snapshotName": "string",
        "isDefault": true,
        "audit": {
          "createdBy": "string",
          "createdOn": "2024-06-13T16:14:13.581Z"
        },
        "status": "ACTIVATION_STARTED"
      }
    }
  ],
  "count": 0
}
Back to Top