So as it turns out, the following command works:
`db:delete('ngram', 'ngram-buckets.xml')`
that is, the filename without the path. This time the file actually disappears from the database.
All good for now.