Exodus 32:32-33

32:32 But now, if you will forgive their sin…, but if not, wipe me out from your book that you have written.” 32:33 The Lord said to Moses, “Whoever has sinned against me – that person I will wipe out of my book.

Exodus 17:14

17:14 The Lord said to Moses, “Write this as a memorial in the book, and rehearse it in Joshua’s hearing; for I will surely wipe out the remembrance of Amalek from under heaven.