How to remove your iCloud account remotely.
If you sold or gave away your iPhone but forgot to remove your personal data the iPhone is likely iCloud locked. Follow the 6 steps below to remove your iCloud account without compromising your personal information.
Step 1: Go to iCloud.com and sign in
Step 2: Click the “Find my iPhone” app
Step 3: Click “All Devices”
Step 4: Select the device you need to remove
Step 5: Select “Remove from Account”
Step 6: Click “Remove”
Your iCloud account has been removed and the iPhone is now ready to be used by a new owner.