Delete items in an array that are in another array
<p>I'm stuck with my script. 
I need to compare two arrays, one is the result of a query, the other one of a content of a file:</p>

<pre><code>$Array1 = Invoke-Sqlcmd -Query "select name from person"

$Array2 = Get-Content ".\Myfile.txt" #the file is a set of one item
every line
</code></pre>

<p>Now, in $Array2 there are items that I would like to delete from the $Array1. </p>

<p>How can I do this? 
Thank you for yr help!</p>