title: Entity Framework .Remove() vs. .DeleteObject()
body: <p>You can remove an item from a database using EF by using the following two methods.</p>
  
  <ul>
  <li><p><a href="http://msdn.microsoft.com/en-us/library/bb337024.aspx">EntityCollection.Remove Method</a></p></li>
  <li><p><a href="http://msdn.microsoft.com/en-us/library/system.data.objects.objectcontext.deleteobject.aspx">ObjectContext.DeleteObject Method</a></p></li>
  </ul>
  
  <p>The first is on the <code>EntityCollection</code> and the second on the <code>ObjectContext</code>.</p>
  
  <p>When should each be used? </p>
  
  <p>Is one prefered over the other?</p>
  
  <p><code>Remove()</code> returns a <code>bool</code> and <code>DeleteObject()</code> returns <code>void</code>.</p>