R2 Cleanup Tool
Validate Cloudflare R2 credentials, preview a folder-like prefix, and delete objects in safe batches without storing what users enter.
Temporary secrets only
Uses our server
Your R2 credentials are sent to our server over HTTPS with each request and are never saved.
1. Connect to R2
Credentials stay in memory only for the current browser session and are sent to the server only over HTTPS requests.
Browse folders
Validate first, then click folders to pick a prefix quickly.
2. Preview scope
We scan the selected scope in batches so large buckets do not time out.
Objects
0
Total size
0 B
Current target
Bucket/[prefix]
Sample keys
Examples
Delete an old upload folder
Input
Bucket "media", folder prefix uploads/2024/
Output
A preview of the objects under that prefix, then deletion in batches once you confirm.
Questions and answers
What do I need to connect?
Your Cloudflare account ID, the bucket name, and an R2 API token's access key ID and secret access key. A token limited to that one bucket is the safest choice.
Can I undo a deletion?
No. Objects deleted from R2 cannot be recovered, which is why the tool shows a preview before anything is deleted.
Are my keys stored?
No. They are kept in memory for this browser session only and sent to our server over HTTPS with each request. They are never written to the URL, local storage, cookies or the server's disk.
Which permission does the R2 API token need?
Object Read & Write, limited to the one bucket you want to clean. Read access is enough to validate and preview, but deleting needs write access. Create the token under R2 API tokens in the Cloudflare dashboard and revoke it when you are done.
Can R2 delete old files automatically instead?
Yes. R2 object lifecycle rules can delete objects under a prefix once they reach a set age, which suits recurring cleanup such as old logs or uploads. This tool is for one-off deletions you want to preview first.
Sources and standards
Related tools
All ToolsJSON Formatter
Format and validate JSON data
FormattingPassword & Key Generator
Generate strong passwords, passphrases, PINs, UUIDs and API keys, or paste one to find out what type it is
SecurityProxy Checker
Test an HTTP, SOCKS4 or SOCKS5 proxy and see its exit IP, country and speed
NetworkMy IP / IP Checker
See your current IP when visiting, or enter another IP to validate
Network