async def reset_all(self, full=True):
        """
        Reset states in DB

        :param full: clean DB or clean only states
        :return:
        """
        conn = await self.redis()

        if full:
            await conn.execute('FLUSHDB')
        else:
            keys = await conn.execute('KEYS', 'fsm:*')
            await conn.execute('DEL', *keys)
async def reset_all ( self , full = True ) : conn = await self . redis ( ) if full : await conn . execute ( 'FLUSHDB' ) else : keys = await conn . execute ( 'KEYS' , 'fsm:*' ) await conn . execute ( 'DEL' , * keys )
Reset states in DB

        :param full: clean DB or clean only states
        :return: