st2common/st2common/models/db/__init__.py
def delete_by_query(self, **query):
        """
        Delete objects by query and return number of deleted objects.
        """
        qs = self.model.objects.filter(**query)
        count = qs.delete()
        log_query_and_profile_data_for_queryset(queryset=qs)

        return count

        Delete objects by query and return number of deleted objects.
        
Delete objects by query and return number of deleted objects.
Delete objects by query and return number of deleted objects .
def delete_by_query(self, **query):
        qs = self.model.objects.filter(**query)
        count = qs.delete()
        log_query_and_profile_data_for_queryset(queryset=qs)
        return count
def delete_by_query ( self , ** query ) : qs = self . model . objects . filter ( ** query ) count = qs . delete ( ) log_query_and_profile_data_for_queryset ( queryset = qs ) return count
Delete objects by query and return number of deleted objects.
Delete objects by query and return number of deleted objects .
"""
        Delete objects by query and return number of deleted objects.
        """
self