Move and delete source files that already exist in the destination?

Is there any way to use rclone move with the --ignore-existing flag that will delete the source file if the file already exists in the destination?

Essentially, I want this:

  1. move src:fileA to dest:
  2. dest:fileA already exists
  3. src:fileA gets deleted because dest:fileA exists

I've tried --delete-after but this only deletes a file after a successful transfer, which doesn't happen because --ignore-existing will SKIP the transfer instead failing or succeeding it.

By default if you move a file and it already exists in the destination, it deletes it so it already does that with no flags.

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.