title: Delphi Delete all records from FDTable
body: <p>Iam trying to delete all records in my FDTable component using , </p>
  
  <p><code>mytable.Delete;</code></p>
  
  <p>but no record is getting deleted.</p>
  
  <p>can any one suggest me a way to delete all records in a FdTable.</p>
  
  <p><strong>EDIT</strong></p>
  
  <p>i modified it in this way,</p>
  
  <pre><code>  for i := mytable.RecordCount - 1 downto 0 do
    begin
      mytable.Delete;
    end;
    mytable.Refresh;
  </code></pre>
  
  <p>but it is taking lot of time because there a lot rows in my fdtable.</p>