The bit that makes this tricky is that it’s all tied to an email ID.
Not as simple as selling some hardware or a game cart - you can’t wipe it as the activation servers won’t recognise it, so it’s ‘stuck’ with an Apple ID that’s probably tied to loads of other stuff.