title: How to drop a table in Entity Framework Code First?
body: <p>I am using Entity Framework with Auto Migrations.</p>
  
  <p>So when I add a new model to my Context, my database is updated and new table is created.</p>
  
  <p>What I want to do is the opposite, droping the table completely from database. However, removing the definition from Context class does not work.</p>
  
  <pre><code>public class CompanyContext : DbContext
  {
      public DbSet&lt;Permission&gt; Permissions { get; set; }
      public DbSet&lt;Company&gt; Companies { get; set; }
  
      protected override void OnModelCreating(DbModelBuilder modelBuilder)
      {
         base.OnModelCreating(modelBuilder);
      }
  }
  </code></pre>
  
  <p>For instance, I want to remove <code>Company</code> table from database. To do that, I remove <code>Companies</code> property from <code>CompanyContext</code> class. However, it is not working.</p>
  
  <p>What is the proper way to drop tables in EF and using auto migrations if possible ?</p>