On previous post we have looked install libssl-dev package in ubuntu machine, this page shows you To remove  libssl-dev package itself from Ubuntu 14.04 (Trusty Tahr) execute on terminal:

$ sudo apt-get remove libssl-dev


If you would like to remove including and any other dependent package which is no longer needed from ubuntu,

$ sudo apt-get remove --auto-remove libssl-dev


Purginglibssl-dev

If you want to delete configuration permanently from ubuntu, use with purge option

$ sudo apt-get purge libssl-dev


If you want to delete configuration permanently and it's dependencies from Ubuntu

$ sudo apt-get purge --auto-remove libssl-dev