title: How can I remove "$MachineName" item from NotesAgent variable? Or how can I cast NotesAgent to NotesDocument so that I can remove this item?
body: <p>I have the following code:</p>
  
  <pre><code>Forall agent In db.agents
    'I need to remove "$MachineName" item from all agents
  End Forall
  </code></pre>
  
  <p>How can I remove "$MachineName" item from NotesAgent? Or how can I cast NotesAgent to NotesDocument so that I can remove this item?</p>