Remove fields from documents based on their value

The update API can be used to delete fields. You could use a ruby script to iterate over the fields of an event and generate a list of empty fields.