how can i clear the 301 error?
I'm afraid I don't understand your question. 301 is a redirect code, not an error message. Where are you encountering it, and why is it a problem?
Could you add a link to your page where you are having the problem?