To uninstall libdune-grid-dev just follow these instructions.
sudo apt-get remove libdune-grid-dev
This will remove just the libdune-grid-dev package itself.
sudo apt-get remove --auto-remove libdune-grid-dev
This will remove the libdune-grid-dev package and any other dependant packages which are no longer needed.
If you also want to delete your local/config files for libdune-grid-dev then this will work.
sudo apt-get purge libdune-grid-dev
Or similarly, like this libdune-grid-dev
sudo apt-get purge --auto-remove libdune-grid-dev
|Maintainer||Debian Science Maintainers <email@example.com>|
|Description||toolbox for solving PDEs -- grid interface (development files)|