---
title: "Delete selected sync items"
method: POST
path: "/sync/delete-batch"
tags: ["sync"]
---

# Delete selected sync items

`POST /sync/delete-batch`

Removes the specified items from remote repository, local disk, and sync state in a single commit.

## Query parameters

- `remoteNode` string

## Request body

- SyncDeleteBatchRequest — Request to delete selected items
  - `itemIds` string[], required — Item IDs to delete
  - `message` string — Commit message for the deletion
  - `force` boolean — Force delete items with local modifications or conflicts

## Response `200`

Items deleted successfully

- object
  - `deleted` string[], required — List of deleted item IDs
  - `message` string, required — Summary message

## Other responses

- `400` — Cannot delete (push disabled, untracked items, validation error)
- `404` — Item not found
- `default` — Unexpected error

## Changes

- **2026-05-24** (v1) `8a2d5d3e9608` — 3 warning
  - added the new `rate_limited` enum value to the `code` response property for the response status `400`
  - added the new `rate_limited` enum value to the `code` response property for the response status `404`
  - added the new `rate_limited` enum value to the `code` response property for the response status `default`
- **2026-04-30** (v1) `50e1d517afc1` — 3 info
  - removed the `rate_limited` enum value from the `code` response property for the response status `400`
  - removed the `rate_limited` enum value from the `code` response property for the response status `404`
  - removed the `rate_limited` enum value from the `code` response property for the response status `default`

[Change history](https://skmtc.dev/dagucloud/apis/dagu/changes/sync/delete-batch/post.md)

---

[API](https://skmtc.dev/dagucloud/apis/dagu.md) · [All operations](https://skmtc.dev/dagucloud/apis/dagu/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/dagucloud/dagu/revisions/8a2d5d3e9608/schema)
