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

# Delete selected sync items

`POST /sync/delete-batch`

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

## Query parameters

- `remoteNode` string

## Request body

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

## Response `200`

Sync items deleted successfully

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

## Other responses

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

---

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