How to remove document I logstash pipilnie that has no usefull fields

In ruby you would call event.cancel to delete an entire event. There is an example here.