'Deletes the embedded documents from the database.
.. note::
The embedded document changes are not automatically saved
to the database after calling this method.
:return: The number of entries deleted.'

def delete(self):

    values = list(self)
    for item in values:
        self._instance[self._name].remove(item)
    return len(values)
