title: I need to delete users from Active Directory using a imported csv file
body: <p>I have a CSV file with a list of user names, I need to delete all of these users from Active Directory using the <code>Remove-ADObject command</code>.  I am not very familiar with the syntax for this command - hoping you guys can help me here. </p>
  
  <pre><code>Import-Module activedirectory
  
  $list = Import-CSV C:\Users\user\Desktop\deleteuserstest.csv
  
  forEach ($item in $list) {
      $samAccountName = $item.samAccountName
      Remove-ADobject -Identity $samAccountName
  }
  </code></pre>