Getting rid of icloud on old iphone Bought an iphone 6.  Set my old phone iphone 5 back to factory settings and gave to a young friend.  She keeps saying icloud is stopping her from using it. Took it back and did another factory reset via iTunes.  She went into mobile shop with it but she now says I need to give her my apple or icloud password or, go to 'find my phone' select 'all devices' to open list of devices linked to my account on the old phone. Not mobile savvy, too old to learn new tricks.
Go to Settings on iCloud.com, then look at the My Devices section.
In the list of devices, click the one you want to remove.
Click the Delete button (x) next to the device. If you don’t see the Delete button, click Remove Device (below the device serial number or IMEI number).


For full instructions please see here:
https://help.apple.com/icloud/#mm25565a6496