How to Clear Array or Remove it's items

Hi I have script, which moves parent independently of children. It works for static scene, but i have children which Instantiates permanently. because of that I need to clear childs array before new iteration.

using UnityEngine;
using System.Collections;

public class MoveParentToChilds : MonoBehaviour {
	public Transform[] childs;
	public float ControlDistance = 10f; //Расстояние между потомком и родителем на котором сработает скрипт
	private int j;
	private float MaxValue = 0f;
	// Use this for initialization
	public void ResetDistance () {
		childs = gameObject.GetComponentsInChildren<Transform>();
		foreach (Transform child in childs) {
			if (Mathf.Abs (child.localPosition.x) > ControlDistance) {
				float Value = Mathf.Abs (child.localPosition.x) - ControlDistance;
				if (Value > MaxValue) {
					MaxValue = Value;
				}
				child.parent = null;
			}
		}
		j = 1;
		if (transform.position.x < 0) {
			j = 1;
		}
		float transX = transform.position.x - MaxValue * j;
		transform.position = new Vector3 (transX, transform.position.y, transform.position.z);
		foreach (Transform child in childs) {
			child.parent = transform;
		}
	}
}

So the question is why I can’t remove element of Array childs (is it array or not?) childs.Clear() not working. And how to remove 1st item of childs, because 1st item is Parent?

using system;

Array.clear(arrayname,0,arrayname.length);

If I understand you question correctly you want to clear element of the childs array?

so then:

public Transform[] childs;

for ( int i = 0; i < childs.Length; i++)
{
   childs *= 0;*

}

//or

for ( int i = 0; i < childs.Length; i++)
{
childs = null;
}

Using the childs.Clear() method does not word because its a method that can clear certain elements of an array.
see here
[Array.Clear Method (System) | Microsoft Learn][1]
so you can use the system Array class if you had certain elements you wanted to remove.
if you wanted to remove all elements then the code I listed.
if you want to remove first item of childs it is
childs[0] = null;
_*[1]: Microsoft Learn: Build skills that open doors in your career

There is a difference between Array.Clear() and then the array you are using.

thus the Array.Clear(); works by removing a certain element og elements from you childs array.

if you wanted to clear all elements or had an index in the array you wanted to remove then you do

for (int i = 0; childs.Length; i++)
{
   childs *= null // or*

childs = 0;

}
both should work