---
title: "Delete resources in batch"
method: POST
path: "/v3/accounts/resources/delete-batch"
tags: ["Resources"]
---

# Delete resources in batch

`POST /v3/accounts/resources/delete-batch`

Deletes several resources at once.

Individual failures are reported per item — the request still returns
`200`. Check `success` on each entry.

Requires the **Superadmin** role.

## Request body

- ResourceRef[]
  - `id` string, required
  - `resourceType` 'map' | 'workflow' | 'connection' | 'accessToken', required

## Response `200`

The result for each resource.

- BatchResult[]
  - `id` string
  - `resourceType` 'map' | 'workflow' | 'connection' | 'accessToken'
  - `success` boolean
  - `failureReason` string — Only present when `success` is `false`.

## Other responses

- `400` — The request is malformed or a parameter failed validation.
- `401` — The token is missing, malformed or expired.
- `403` — The token doesn't grant access to this resource.

---

[API](https://skmtc.net/gitbookio/apis/carto-api.md) · [All operations](https://skmtc.net/gitbookio/apis/carto-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/gitbookio/carto-api/revisions/019f79ecdd6c/schema)
