Deleting a program stored in arduino using java

Hello , i am new to using arduino and currently i am using it for a gui project to receive and delete the data(current time of the system) from it.

I am able to receive all the bytes of data and get it displayed in the GUI. But i am not able to understand how to delete all the data from arduino using java.

SkitteryVenus7:
But i am not able to understand how to delete all the data from arduino using java.

I am confused. Your title suggests you want to delete a program but your Original Post says you want to delete data.

The easiest way to delete a program is to upload the example Blink program in its place.

If you really mean that you want to delete data then you need to tell us what the data is.

Maybe a solution is to have a function within your Arduino program that deletes data in response to a message from your Java program.

...R