---
title: "Move source to destination"
method: POST
path: "/sync/move"
---

# Move source to destination

`POST /sync/move`

Moves objects from a source remote to a destination remote, optionally cleaning up empty directories.

## Query parameters

- `srcFs` string
- `dstFs` string
- `createEmptySrcDirs` boolean
- `deleteEmptySrcDirs` boolean
- `_config` string
- `_filter` string
- `_group` string
- `_async` boolean

## Headers

- `Prefer` 'respond-async'

## Request body

- SyncMoveRequest
  - `srcFs` string — Source remote path whose contents will be moved.
  - `dstFs` string — Destination remote path that will receive moved files.
  - `createEmptySrcDirs` boolean — Set to true to create empty source directories on the destination.
  - `deleteEmptySrcDirs` boolean — Set to true to delete empty directories from the source after the move completes.
  - `_config` string — JSON encoded config overrides applied for this call only.
  - `_filter` string — JSON encoded filter overrides applied for this call only.
  - `_group` string — Assign the request to a custom stats group.
  - `_async` boolean — Run the command asynchronously. Returns a job id immediately.

## Response `200`

Request succeeded returning an empty JSON object.

- object

## Other responses

- `202` — Request accepted for async processing. Poll /job/status with the returned jobid.
- `4XX` — Any error response (HTTP 4xx/5xx)
- `5XX` — Any error response (HTTP 4xx/5xx)

---

[API](https://skmtc.net/rclone/apis/rclone-rc-api.md) · [All operations](https://skmtc.net/rclone/apis/rclone-rc-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/rclone/rclone-rc-api/versions/2849bf2803ce/schema)
