C#:
public void DeleteArray(string name)
{
for (int i = 0; i < CountPeople.Length; i++)
{
if (CountPeople != null)
{
if (CountPeople.Name == name)
{
for (int x = i - 1; x < CountPeople.Length; x++)
{
CountPeople[x] = CountPeople[x + 1];
}
}
}
}
}