<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def delete(self, *, page_size=DEFAULT_BATCH_SIZE, **options):
 """Deletes all the entities that match this query. Note: Since Datasotre doesn't provide a native way to delete entities by query, this method paginates through all the entities' keys and issues a single delete_multi call per page. Parameters: \**options(QueryOptions, optional) Returns: int: The number of deleted entities. """

        from .model import delete_multi

        deleted = 0
        options = QueryOptions(self).replace(keys_only=True)
        for page in self.paginate(page_size=page_size, **options):
            keys = list(page)
            deleted += len(keys)
            delete_multi(keys)

        return deleted