def clear_messages(identity):
 BackendMessage.objects.filter(identity=identity, name=BACKEND_NAME).delete()

def clear_messages ( identity ) : BackendMessage . objects . filter ( identity = identity , name = BACKEND_NAME ) . delete ( )
forget messages to/from this identity .