How to reset devices
1. First go to settings (IF YOU DONT HAVE SETTINGS GO TO 5)
2, go to General > Trasfer or Reset
3, Then enter your password and then you should see this:4, Press continue and then choose your choices
Then you're done! Set up your device in any way
5, if you don't have settings or Erase all content is disabled, do the instructions:
For old devices hold power button and home button
If the device does not have a home button then hold power button and volume up and down button until you see these
and your done!
If this is helpful remind me below
iMac 24″, macOS 15.1