Array remove element issue

Hello!

First of all, how should I remove an element from an array?
Now I am using arrays this way (just an example):

array[“red”] = 0xff0000;
array[“black”] = 0x000000;

How do I remove “red” for example from the array?

Thank you!