How to Edit Object Names in Cloudflare R2 Bucket

Hi everyone,

I’m currently working with Cloudflare R2 and need to rename some objects in my bucket. However, I’m not sure how to go about editing object names within the R2 environment.

I’ve tried looking through the documentation and the dashboard, but I can’t seem to find a straightforward way to rename an object directly. Is there a feature or a workaround that allows for changing object names? Or do I need to download, rename, and re-upload the object?

If anyone has experience with this or can point me in the right direction, your help would be greatly appreciated!

Thank you in advance!

1 Like

There’s no mechanism to rename S3 or R2 objects. It’d have to be a Copy to new name & Delete old object. In other words, your download/rename/upload may be the easiest approach for you.

Or, if you have rclone, or something else that works with S3, they can emulate that, such as rclone’s moveto command.