I have erased the old M1 MacBook Air. Being an Apple Silicon device it's really easy, first I deactivated Find My thingy. Then used the Transfer or Reset option in System Settings-->General. Part of that process was signing out of my iCloud account. It's done now, when switched on it opens in Setup Assistant, just like a new Mac.