thanks for this, it is useful but not exactly what I wanted - In reality what I want to do is add a new Subfeature to an existing entry, and I thought that the best way to do that would be to re-create the genbank file and replace the old one.. the problem was that BioSQL wont let you overwrite an entry...
I solved it using ordinary commands to remove a row from the Bioentry table, and it seems that all its associated data disappeared as well.
Now i just need to figure out how to add a subfeature to an existing feature in an existing record!