title: RIA Services Entity Deletion
body: <p>I have a DomainService which I am trying to delete records from.</p>
  
  <p>Assuming the following rough code server-side method:</p>
  
  <pre><code>public IQueryable&lt;Employee&gt; GetAllEmployees()
  {
      DataLoadOptions loadOpts = new DataLoadOptions();
      loadOpts.LoadWith&lt;Models.Employee&gt;(e =&gt; e.PhoneNumber);
  
      this.DataContext.LoadOptions = loadOpts; 
      return this.DataContext.Employees;
  }
  </code></pre>
  
  <p>This means that when I load all my employees, all their Phone Numbers are included.</p>
  
  <p>I can do the following client side code, with <em>phoneNumber</em> being an entity:</p>
  
  <pre><code>domainContext.Employees.PhoneNumbers.Remove(phoneNumber);
  </code></pre>
  
  <p>This, as I understand it, removes the <em>relationship</em> between Employee and PhoneNumber entitities, but what I really want is the complete removal of PhoneNumber from the database. How can I accomplish this?</p>