def get_and_clear(self):
        return self.session.pop('_messages', [])

    # Wrapper functions for add
Retrieves current notices, and clears them from the session.
dataset/ETHPy150Open dcramer/django-notices/django_notices/helpers.py/NoticeHandler.get_and_clear