To uninstall libexpat1-dev just follow these instructions.
sudo apt-get remove libexpat1-dev
This will remove just the libexpat1-dev package itself.
sudo apt-get remove --auto-remove libexpat1-dev
This will remove the libexpat1-dev package and any other dependant packages which are no longer needed.
If you also want to delete your local/config files for libexpat1-dev then this will work.
sudo apt-get purge libexpat1-dev
Or similarly, like this libexpat1-dev
sudo apt-get purge --auto-remove libexpat1-dev
|Maintainer||Laszlo Boszormenyi (GCS) <firstname.lastname@example.org>|
|Description||XML parsing C library - development kit|