Problem uploading the code.

The code is getting compiled but I cannot upload the code. I have already done uninstalling and installing the arduino software. Please help

Arduino: 1.6.10 (Windows 10), Board: "Arduino/Genuino Uno"

Sketch uses 928 bytes (2%) of program storage space. Maximum is 32,256 bytes.
Global variables use 9 bytes (0%) of dynamic memory, leaving 2,039 bytes for local variables. Maximum is 2,048 bytes.
java.io.IOException: Cannot run program "REMOVE/bin/avrdude": CreateProcess error=2, The system cannot find the file specified
at java.lang.ProcessBuilder.start(ProcessBuilder.java:1048)
at processing.app.helpers.ProcessUtils.exec(ProcessUtils.java:26)
at cc.arduino.packages.Uploader.executeUploadCommand(Uploader.java:130)
at cc.arduino.packages.uploaders.SerialUploader.uploadUsingPreferences(SerialUploader.java:209)
at cc.arduino.UploaderUtils.upload(UploaderUtils.java:78)
at processing.app.Sketch.upload(Sketch.java:1187)
at processing.app.Sketch.exportApplet(Sketch.java:1160)
at processing.app.Sketch.exportApplet(Sketch.java:1132)
at processing.app.Editor$DefaultExportHandler.run(Editor.java:2409)
at java.lang.Thread.run(Thread.java:745)
Caused by: java.io.IOException: CreateProcess error=2, The system cannot find the file specified
at java.lang.ProcessImpl.create(Native Method)
at java.lang.ProcessImpl.(ProcessImpl.java:386)
at java.lang.ProcessImpl.start(ProcessImpl.java:137)
at java.lang.ProcessBuilder.start(ProcessBuilder.java:1029)
... 9 more
An error occurred while uploading the sketch

This report would have more information with
"Show verbose output during compilation"
option enabled in File -> Preferences.

Cannot run program "REMOVE/bin/avrdude"

Seems that you didn't complete the un-installation process properly.

So repeat the de-installation process again and make sure it doesn't leave any Arduino stuff in the system.
Then you have to check if you got an original Arduino or a clone which would need a special driver.

Do you know if you got an original one or a clone (is it an Uno or what Arduino type did you buy?)
If you got a clone, can you identify, which USB/serial communication chip is on board - a lot of them come with CH340 chip on board; then you would need to install the CH340g driver, which you will find at the Chinese site of the CH340g manufacturer (Google "ch340g driver download" and look for the Chinese manufacturer - site is reliable).

After successful installation of the driver, the board should be detected by Windows and a COM-port will be assigned. Then you can re-install the IDE and you should be fine by selecting correct board and correct COM-port.

Would additionally clean up too

This is an answer I already posted elsewhere but it should just about cover your needs and some of which you can ignore as it is almost unedited.

Did you UNINSTALL your previous version fully before installing 1.6.12

What board ? What OS ? USB type ports used 2.0 or 3.0 ? these are all very useful bits of information to have in the forum.

I use REVO to uninstall set to max, CCLEANER to get rid of the crud followed by WISE REGISTRY cleaner to root out any stray bits. That method is by far the best way to not only remove programs but to do a thorough clean up of your computer too... both CCLEANER and WISE are advert free and work very well.

There may also be an Arduino folder that gets left if you are on windows.

The path normally used would be

C:\Users\yourname\AppData\Local\Arduino15
or
C:\Users\yourname\AppData\Roaming\Arduino15

You can DELETE this preferably before you run WISE.

I would also recommend saving your SKETCHES folder somewhere else until you have your IDE up and running too.

Deleted arduino 15 files , installed again but still cant upload.

Arduino: 1.6.10 (Windows 10), Board: "Arduino/Genuino Uno"

Sketch uses 5,446 bytes (16%) of program storage space. Maximum is 32,256 bytes.
Global variables use 253 bytes (12%) of dynamic memory, leaving 1,795 bytes for local variables. Maximum is 2,048 bytes.
An error occurred while uploading the sketch

This report would have more information with
"Show verbose output during compilation"
option enabled in File -> Preferences.

Okay after doing some troubleshooting I can now finally solved with the problem. Thank You BallScrewBob , deleting that arduino15 files did the job.( o extra cleaning was required)

Another user named Bluestazz solved the problem for me:

"Using the Boards Manager, I updated "Arduino AVR Boards" from 1.6.13 to 1.6.14. This fixed the error for me."