how can i erase everything on my arduino chip to start from scratch

it is the esp8266

Wrong section but just like the Arduinos all you need to do is over write the current program with a new one.

You gave almost zero information to go on so thats the best answer you are likely to get.

Some very helpful information about what to post is HERE