title: How to delete record from dbf file using python dbf module?
body: <p>I'm trying to write/delete records in a visual foxpro 6 dbf file, using python 2.7 and the dbf package:</p>
  
  <pre><code>import dbf
  tbl = dbf.Table('test.dbf')
  tbl.open()
  rec = tbl[0]
  print(rec.__class__)
  rec.delete_record()
  </code></pre>
  
  <p>Result:</p>
  
  <pre><code>&lt;class 'dbf.ver_2.Record'&gt;
  Traceback (most recent call last):
    File "C:/Python/Projects/test/test.py", line 11, in &lt;module&gt;
      rec.delete_record()
    File "C:\Python\Projects\test\venv\lib\site-packages\dbf\ver_2.py", line 2503, in __getattr__
      raise FieldMissingError(name)
  dbf.ver_2.FieldMissingError: 'delete_record:  no such field in table'
  </code></pre>
  
  <p>Here is the documentation for that package: <a href="http://pythonhosted.org/dbf/" rel="nofollow noreferrer">http://pythonhosted.org/dbf/</a></p>
  
  <p>The record object really does not have this method, but it is documented. The table is opened in read-write mode. (But it is also true that the Table() constructor should return an opened table, but it returns a closed table instead.)</p>
  
  <p>What am I doing wrong?</p>
  
  <p>The biggest problem is that there are no other options. The only other package I know of is "dbfpy" but that does not handle vfoxpro 6 tables, and it does not handle different character encodings.</p>