title: Deleting items from a dynamic array of strings in Powershell
body: <p>I am trying to delete an item from a string array. It is an array of 5 server names and I run a reboot function against each server in the array. I can only reboot 5 servers at a time so the array will never get bigger than that but at the same time I want to keep adding servers to the array so I can cycle through all of the servers in my environment. When a servers has completed its reboot I need to delete that server from the array so I can add another to the array and run the reboot function against it. I have tried the <code>$array.remove</code> method but I get an error saying that it doesn't work on a string array. I have tried redefining the original array without the rebooted server </p>
  
  <pre><code>"$balancedout = $balancedout -notlike $server".
  </code></pre>