enchantencore:cleansing
Raising the shield (right-click) clears all of your status effects, both good and bad ones. Works with the shield in either hand. Each time effects are removed, the shield loses 1 - 2 durability. Raising it without any active effects costs no durability.
This enchantment has an anvil cost multiplier of 4. When combining it from an enchanted book, the cost is halved.
Enchant the held item: /enchant @s enchantencore:cleansing 1
Get an enchanted book: /give @s enchanted_book[stored_enchantments={"enchantencore:cleansing":1}]