To uninstall libelf-dev just follow these instructions.
sudo apt-get remove libelf-dev
This will remove just the libelf-dev package itself.
sudo apt-get remove --auto-remove libelf-dev
This will remove the libelf-dev package and any other dependant packages which are no longer needed.
If you also want to delete your local/config files for libelf-dev then this will work.
sudo apt-get purge libelf-dev
Or similarly, like this libelf-dev
sudo apt-get purge --auto-remove libelf-dev
|Maintainer||Kurt Roeckx <email@example.com>|
|Description||libelf1 development libraries and header files|