remove object from array of other script

how can i remove an object from an array of another script without knowing its position in the array?

thank you!

Use a List not an array.

import System.Collections.Generic;

 var list = new List.<sometype>;

  myOtherObject.list.Remove(someValue);