Remove Icloud from running device and change its cloud id

i found a solution to day in running device before restoring device all you have to do is follow 
first its a iphone 4, iso 7.1.2 i hope on all iphone it works 


Step 1: Download the latest version of Pangu jailbreak for Mac or Windows from this page.
Step 2:Mac users: Double click on the Pangu dmg file you just downloaded to mount it.
Windows users: Launch the Pangu exe file as an Administrator. Right Click on the Pangu exe and select the “Run as Administrator” option.
Step 3: You should be presented with a screen like the one seen below. Click on the black Jailbreak button.
Step 4: Follow the on-screen instructions. The app will ask you at one point to set your iOS device to June 2nd. To do this, go to Settings -> General -> Date & Time.
Step 5: After you change the date, it should restart the process and install the Pangu app on your iOS device.
Step 6: Tap on the Pangu app on the Home screen of your device when prompted to continue with the jailbreak process. You will get a warning message, which will ask you whether you are “sure you want to open the Application “Pangu” from Developer “iPhone Distribution: Hefei Bo Fang communication technology co., LTD?”. Tap on the Continuebutton to continue with the jailbreak process.
Step 7: Wait for your device to reboot several times. After a few minutes you should see that you have Cydia on your home screen and you’ll be ready to start installing tweaks on iOS 7.1.2. You can also revert back to set the time automatically via the Settings app
done jail break now open cydia in you cellphone 
Step 2: When you are done jailbreaking, click on jailbreaker's best friend, Cydia and let it update and load its resources.

Step 3: Now in Cydia go to Manage tab and then in Sources.



Step 4: Then in Sources section, click on Edit in the top right corner and then on Add, which will now appear in the top left corner.

Step 5: After clicking on Add, a dialogue box appears which asks for the URL of the repository you want to add. Type ihackstore.com/repo/ in it and click on Add Source. Now, after verifying the URL, it sometimes gives a Source Warning. Do not worry about it and click on Add Anyway. Then let it download the sources from the repository you have just added and load them to Cydia. When Return to Cydia appears to screen, click on it and you'll be right back into Cydia with the sources now added and ready to be used.

Step 6: The tricky part is now over. Now go to the Search tab from the bottom and type ifile in it. There will be two (or more - depending on other repos you may have added) search results but you have to click on the top one which has a red colored symbol besides it. You can also go to Manage -> Sources -> ihackstore -> iFile . It is this file only that appears in the search results.

Step 7: Now click on Install button in the top right corner and then on Confirm which appears at the very same place. It is not that big in size at 7.6 MB with all its auxiliaries so it shouldn't take much time. Let iFile be downloaded and installed on your iDevice. When it comes on screen, click on Return to Cydia.

Step 8: Now when you go to your springboard, you will see a washed out white color icon with no design written iFile below it which crashes as soon as you click on it.

Don't worry. You haven't done anything wrong and the iFile has successfully installed as well. Its like installing a major program on a Windows PC - you need to reboot your device to complete the installation process.


And now the icon appears like it should and the application fulfill its purpose beautifully as well.
This is one of the most efficient and used file managing application for iDevice users and after going at it for a while, it can be safely said that it is the title it deserves. It has a very clean interface with all the right options easily accessible. Hopefully, you will have fun tinkering with it.

now moving to last step deleting icloud id from you i device 
Open iFile and go to : /var/mobile/library/accounts and 
Delete : Accounts3.sqlite, Accounts3.sqlite.shm, Accounts3.sqlite.wal
Go to /var/mobile/library/ConfigurationProfiles and
Delete : ClientTruth.plist and CloudConfigurationDetails.plist
Reboot
icloud is totally remove goto setting and icloud check it no where to found now sign in with your own id reboot then device and done enjoy join us if you like us ....