e.g collection COLLECTION_ONE and having element ELEMENT_ONE with value "ValueOne". instead of set the value of element to null or empty I want to delete ELEMENT_ONE from COLLECTION_ONE
If you know the use of $et attribute how to use in Java then its quite easy to remove a field from the document too. MongoDB provided another attribute $unset which is quite opposite to $set.So just use $unset with empty value your field will automatically remove.
For more information please refer to MongoDB official document https://docs.mongodb.com/manual/reference/operator/update/unset/