This is the place to add your deinstallation script. It is similar to the install.sh, you can remove packages and do other things, but be again careful not to crash the server.
Your deinstall.sh may look like:
#!/bin/bash
apt-get update
apt-get remove desiredPackage
root
2015-09-06