Back up any important data first
Open the device or app settings
Find the erase, reset, or factory reset option
Confirm the action when prompted
Enter your password, PIN, or account credentials if required
Wait for the erase process to complete
Restart or set up the device again if needed
