Uninstall docker with pip through ansible

Trying to work out how to uninstall old versions of docker and docker-compose that were installed with pip through ansible?!?!

I've had a look at the pip module but can't find a uninstall variable.

Hope you can point me in the right direction for

John

Set "state: absent", default state is present.

Damnit, forgot about the state.
Thank you so much.