In browser-laptop we have the ability to delete a wallet and reset Brave Payments to a pre-enabled state (wallet info is removed, publisher info is removed, Brave Payments is turned off). Brave Rewards might benefit from a similar feature.
(pre-req: have wallet backed up if it contains BAT)
No way to do this in b-c.
Should be a way to get back to pre opt-in state
Related b-l issues:
https://github.com/brave/browser-laptop/pull/14116 (contains additional items, not just Delete Wallet)
https://github.com/brave/browser-laptop/issues/14758
We're going to need this implemented before the android launch IMO. Reasoning:
Because you won't be able to remove/view any files that are stored on the sandbox storage without rooting, there's really no way of resetting/getting rewards into a working state if a user ends up in a broken state. Their only choice will be to remove the entire app and re-install which isn't the best approach in terms of retention. If you want to access the sandbox storage, you'll need to root the device but this means that reward grants won't work. So it's not really feasible.
We're also getting more reports from users that have run into a state where they can't create wallets due to either having a corrupted ledger_state file or something else that might have happened. There's really no way of correctly recovering unless you start removing files (which we don't recommend doing as it might lead to even more issues) or uninstalling/installing Brave. Again, not great for retention.
This feature should be disconnected from rewards and placed somewhere in Settings. This way, if the entire Rewards feature stops working or gets corrupted, it's still possible to nuke/restart fresh via Settings without relying in the rewards section/code.
CCing @rebron @NejcZdovc @bbondy @bsclifton @LaurenWags @jenn-rhim (design).
cc: @anthonypkeane to put on your radar
Add the feature to reset BR in the "Reset section"

Text: "Reset Brave Rewards"
What it does: delete wallet and every other aspect of BR data
@jenn-rhim will create another issue to create BR Settings and separate BR panel in to a separate piece of code that is always accessible.
cc @NejcZdovc @davidtemkin

Should include a warning/confirm dialog similar to reset settings.
@rebron @mandar-brave can you please provide text for it
cc @mandar-brave
Here is the dialog @jasonrsadler
Reset Brave Rewards
This will reset all of your Brave Rewards data, including your wallet, earned advertising tokens, contribution history, wallet transaction records, recurring tips to content creators, pending contributions to content creators, and any other Brave Rewards settings you may have saved.
On error
Resetting Brave Rewards is failing at the moment. Please restart Brave and try again shortly.
@jasonrsadler
@mandar-brave how is this:
Reset Brave Rewards
This will delete your Brave wallet and reset all of your Brave Rewards data, including your earned advertising tokens, contribution history, wallet transaction records, recurring tips to content creators, pending contributions to content creators, and any other Brave Rewards settings you may have saved.
I think we need to specify that wallet will be deleted
@mandar-brave @bradleyrichter
Wondering if bullet pointing this list is better. Hard to digest in paragraph form.
Reset Brave Rewards
This will delete your Brave wallet and reset all of your Brave Rewards data, including:
Probably should add a note to backup wallet for future use or reuse?
+1 for backup wallet, however, there are certain things like unclaimed advertising tokens ( + all Rewards records, etc.) that would not be recovered. cc @tmancey
@rebron open to bullet points; not sure if the visual will look ok. @jasonrsadler i like Raf's proposal, just not sure if the dialog can take than much height and then take the buttons + error. Please comment.
@mandar-brave @rebron For the browser 'reset settings'. There is a link for 'Learn More'. Would 'Reset Rewards' detailed explanation be better suited for a help page as well rather than trying to squeeze all in the dialog?
@jasonrsadler i can definitely do a FAQ question; knowing the fact that this is nuclear, we should definitely have an upfront "you are warned" thing. Well - tell us what we can squeeze and we can go from there!
cc: @Brave-Matt Will need updates to support docs for this one too.
closing as this issue is more up to date with what we want https://github.com/brave/brave-browser/issues/10064
Most helpful comment
@jasonrsadler i can definitely do a FAQ question; knowing the fact that this is nuclear, we should definitely have an upfront "you are warned" thing. Well - tell us what we can squeeze and we can go from there!