Obliviate

You attempt to reshape another being’s memories. One being you can see within range must make a Wisdom saving throw. If you are fighting the creature, it has advantage on the saving throw. On a failed save, the target becomes charmed by you for the duration. The charmed target is incapacitated and unaware of its surroundings, though it can still hear you. If it takes any damage or is targeted by another spell, this spell ends, and none of the target’s memories are modified. You can eliminate the target’s memory of an event or detail (or any individual aspect of that event or detail) that it experienced or perceived within the last 24 hours and that lasted no more than 10 minutes. You must mentally describe or visualize how the memories are affected. The being’s mind fills in any gaps in the details of your description. If the spell ends before you have finished describing or visualizing the modified memories, the target’s memory isn’t altered. Otherwise, the modified memories take hold when the spell ends. A modified memory doesn’t necessarily affect how a being behaves, particularly if the memory contradicts the creature’s natural inclinations, alignment, or beliefs. An illogical modified memory, such as erasing all memory of how they were transported to and from a location, is dismissed by the target, perhaps as a bad dream. The HM might deem a modified memory too nonsensical to affect a being in a significant manner. A vulnera sanentur or obliviate spell cast on the target restores the creature’s true memory. At Higher Levels. If you cast this spell using a spell slot of 6th level or higher, you can eliminate the target’s memories of an event that took place up to 7 days ago (6th level), 30 days ago (7th level), 1 year ago (8th level), or any time in the creature’s past (9th level). Alternatively, you can eliminate a detail or topic in all memories across those same time frames.