How to remove cwm and unroot tab 2 10.1 For my introduction into Android I picked up a cheap tab 2 10.1 from Amazon as it was stuck in a boot loop.

After searching this forum I found a post related to 'unrooting' the tablet, and so I was able to 'unroot' it by flashing it with a new rom. I used slimrom to test and now I'll use a factory rom next.

Could someone please instruct me on how to remove the cwm so that I can completely return the tablet to near factory-like condition?

Thanks.
Steps to unroot Samsung Galaxy Tab 2 10.1 to stock official firmware


Download appropriate stock official firmware (according to region) for Samsung Galaxy Tab 2 10.1 to computer.
Download links: GT-P5100/GT-P5110/GT-P5113
Extract the downloaded zip to get a file with .tar.md5 extension along with some other files
Download and extract Odin3
Turn off the Galaxy tablet and wait for five to six seconds for vibration to confirm complete power off
Boot the tablet into Download Mode by pressing and holding Volume Down and Power buttons together until a warning screen appears on the tablet's screen. Now press the Volume Up button to continue to enter into Download Mode
Run Odin3 as Administrator
Connect the tablet to the computer using the USB cable while the phone is in Download Mode. Wait until Odin detects the device. When it is connected successfully, an Added message will appear under Odin's message box. Additionally, the ID: COM box in Odin will turn blue with COM port number indicating successful connection.
Note: If the Added message does not appear, then try the USB port at the back of the computer. If Odin still fails to recognize the device then re-install USB Driver.
Select these files extracted from stock firmware folder to install on the tablet


Click PDA button and select file with .tar.md5 extension
Click Phone button and select file with Modem in its name
Click CSC button and select file with CSC in its name
Click PIT button and select the .pit file
 
Note: Ignore last three steps (2-4) if such files are not found.

Configure Odin settings. Ensure Auto Reboot and F.Reset Time checkboxes are selected. But uncheck Re-Partition option; select it only when .pit file is being used
Double check everything and click the Start button in Odin. The installation should begin now and would take a few minutes to complete
When the installation process is completed, the phone will restart automatically. Following this, a PASS message with green background will appear in a box at the extreme left of Odin indicating successful installation. Unplug the USB cable from the phone to disconnect it from the computer


As the Galaxy Tab 2 10.1 boots up successfully, it should be unrooted and running on stock official firmware. Head over to Settings>> About tablet to verify the software version of the device.