To uninstall flex just follow these instructions.
/debian/stretch/main///install/index.html fast lexical analyzer generator Debian 9.0 devel 2.6.1-1.3
sudo apt-get remove flex
Which will remove just the flex package itself.
sudo apt-get remove --auto-remove flex
This will remove the flex package and any other dependant packages which are no longer needed.
If you also want to delete your local/config files for flex then this will work.
sudo apt-get purge flex
Or similarly, like this flex
sudo apt-get purge --auto-remove flex
Package | flex |
Version | 2.6.1-1.3 |
Maintainer | Manoj Srivastava |
Description | fast lexical analyzer generator |
Distro | debian |
Release | stretch |
Repo | main |
Section | devel |