# Remove execution cases in a batch

URL: https://docs.ones.cn/developer/openapi/api/batch-delete-execution-cases

```
POST
## /project/executionCases/batch-delete

```

Removes each execution case independently. A failed item does not roll back successful items.

## Request

### Query Parameters

**teamID** stringrequired The team ID

- application/json

### Body

**required

**

**executionCaseIDs** string[]required **Possible values:**`>= 1`

## Responses

- 200
- 401
- 403
- 404
- 500

Returns successful execution case IDs and per-item failures.

- application/json

- Schema
- Example (from schema)

**Schema

**

**data

** object

**successExecutionCaseIDs** string[]required Execution case IDs that were updated or removed successfully.

**failedCases

** object[]

required

Per-item failures. These failures do not roll back successful items.

- Array [
**executionCaseID** stringrequired The execution case ID that failed.

**code** stringrequired The failure code for this execution case.

**message** stringrequired The failure message for this execution case.

- ]

**result** string The result of this request.

**errorCode** string The error code of this request.

**errorMsg** string Error message for this request.

**errorData** object Error meta data for this request.

```json
{
  "result": "SUCCESS",
  "data": {
    "successExecutionCaseIDs": [
      "executionCaseUUID1"
    ],
    "failedCases": [
      {
        "executionCaseID": "executionCaseUUID2",
        "code": "AccessDenied",
        "message": "No permission to operate this execution case"
      }
    ]
  }
}
```

Returned if the authentication credentials are incorrect or missing.

- application/json

- Schema
- Example (from schema)

**Schema

**

**result** string The result of this request.

**errorCode** string The error code of this request.

**errorMsg** string Error message for this request.

```json
{
  "result": "FAIL",
  "errorCode": "Unauthorized",
  "errorMsg": "Access token is invalid"
}
```

Returns if the scope check fails.

- application/json

- Schema
- Example (from schema)

**Schema

**

**result** string The result of this request.

**errorCode** string The error code of this request.

**errorMsg** string Error message for this request.

```json
{
  "result": "FAIL",
  "errorCode": "Forbidden",
  "errorMsg": "Scope is invalid"
}
```

Returned if the resource object was not found.

- application/json

- Schema
- Example (from schema)

**Schema

**

**result** string The result of this request.

**errorCode** string The error code of this request.

**errorMsg** string Error message for this request.

```json
{
  "result": "FAIL",
  "errorCode": "NotFound",
  "errorMsg": "Not Found"
}
```

Internal Server Error.

- application/json

- Schema
- Example (from schema)

**Schema

**

**result** string The result of this request.

**errorCode** string The error code of this request.

**errorMsg** string Error message for this request.

```json
{
  "result": "FAIL",
  "errorCode": "Internal Server Error",
  "errorMsg": "Internal Server Error"
}
```
