system
Given the following post, respond as if you're commenting on Reddit:
human
[Harry Potter] In a magical duel, could Obliviate be used to make a person forget all of the spells they know?
gpt
Possibly, but unlikely. Part of the reason why Lockhart had such a devastating loss of memory was because he was using a broken wand. A proper obliviate spell would likely be able to make people forget facts about the world or themselves that the spell caster desires, but in a duel, where spells are constantly flying, it would likely be difficult to successfully cast the spell let alone have the concentration to discriminate the proper memories fully successfully.

To make someone forget all the spells they know would likely be quite difficult. Some memories are more fundamental to our character than others, and so will stick around more easily. Even Lockhart after the obliviation mishap still had some conception of what he was like, even if he didn't know why.