Overview
DBR provides several configuration options to customize its behavior. These options can be set via:- Command-line arguments
- Environment files (for
RBX_TOKENandUSER_AGENT)
--place, --badge, etc.), see the Commands section.
Cache Directory
Control where DBR stores cached data.—cache-directory
Short flag:-cdType: String (directory path)
Default:
./dbr_cache/ (in current directory)
What is Cached?
DBR caches:- Downloaded badge spam lists
- MetaGamerScore invalid game lists
- API response data to reduce redundant requests
Custom Cache Locations
You can specify any directory path:The cache directory will be created automatically if it doesn’t exist.
Why Change the Cache Directory?
- Shared cache: Use a central location for multiple projects
- Temporary storage: Use
/tmpor similar for temporary caching - Cloud storage: Store cache in a synced folder (Dropbox, etc.)
- Disk space: Move cache to a drive with more space
Delete Threads
Control how many concurrent threads DBR uses when deleting multiple badges.—delete-threads
Type: IntegerDefault:
2Range: 1 or higher
How It Works
When deleting multiple badges (e.g., all badges from a game), DBR can process deletions in parallel using multiple threads:- 1 thread: Sequential deletion (slowest, but safest)
- 2 threads: Default balance between speed and safety
- 5+ threads: Faster deletion, but may trigger rate limits
Choosing Thread Count
When to Increase Threads
Consider increasing thread count when:- You have hundreds of badges to delete
- You’re not experiencing rate limiting issues
- You want to speed up bulk deletion operations
When to Decrease Threads
Use a single thread (1) when:- You’re experiencing rate limiting errors
- You want maximum reliability
- You’re not in a hurry
User Agent
Customize the User-Agent header for HTTP requests made by DBR.—user-agent
Short flag:-uaType: String
Default:
DBR/{version} (e.g., DBR/1.0.0)Can also be set in: Environment files as
USER_AGENT
What is a User Agent?
The User-Agent is a string sent with every HTTP request that identifies the client making the request. Roblox’s API can see this value.Why Change the User Agent?
- Custom identification: Identify your requests in logs
- Testing: Test different user agent behaviors
- Compliance: Match specific user agent requirements
The default user agent (
DBR/{version}) is perfectly fine for normal use. You only need to change this if you have specific requirements.Setting User Agent in Environment Files
You can also set the user agent in your.env file:
.env
Priority
If you set the user agent in both places, the command-line argument takes priority:Configuration Examples
Basic Usage with Custom Cache
High-Performance Bulk Deletion
Conservative Safe Mode
Custom User Agent with Multiple Options
Combining with Other Options
These configuration options can be combined with any badge removal commands:Configuration Checklist
For optimal DBR configuration:- Store your ROBLOSECURITY token in an
.envfile (not on command line) - Use default thread count (2) unless you have a specific need to change it
- Set a custom cache directory if you want persistent caching across projects
- Only change user agent if you have a specific requirement
- Test with small operations before running large batch deletions
Environment Variables vs Command Line
Quick reference for what can be configured where:| Option | Command Line | Environment File |
|---|---|---|
| ROBLOSECURITY token | --rbx-token | RBX_TOKEN |
| User Agent | --user-agent | USER_AGENT |
| Cache Directory | --cache-directory | ❌ (command line only) |
| Delete Threads | --delete-threads | ❌ (command line only) |

