How to flush recieve buffer using pymavlink

i need to flush the receive buffer when it receives a very large ammount of requests of the same nature

i tried .reset() method but i only seem to have .close() and this wont flush the buffer

can anyone help with how this is done ?