how to delete errors from arduino IDE

how to delete errors from arduino IDE

Do you mean that you have code that will not compile because of errors ?

If so, post the code and the full error message but take a look at this first Read this before posting a programming question and follow the advice given

Did you read any part of the topic I linked to ?