It won't be eliminated but education is a good start.
When humanity gets a glimpse of just how
many varieties there are in exsitants, there
will be no room for racism.
Some believe it's hardwired and I tend to agree.
I think without being aware of it, you are more comfortable with your own ethnicity. I remember watching a programme a few months back, where different ethnicities were asked to look at picture of different people and comment on who they thought was more likely to commit crime. It turned out that you are more likely to suspect someone of a crime if they are not in the same ethnic group as you.