postrm is in registration-agent 1.3.4-1.
This file is a maintainer script. It is executed when installing (*inst) or removing (*rm) the package.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27  | #!/bin/sh
set -e
if [ "$1" = "purge" ] ; then
        # MySQL uses debconf to get user confirmation before
        # wiping it's lib database directory, a similar
        # approach might be desirable for registrationAgent
        #rm -rf /var/lib/registration-agent
        rm -rf /var/run/registrationAgent
        if getent passwd registration-agent >/dev/null; then
                userdel registration-agent
        fi
        if getent group registration-agent >/dev/null; then
                groupdel registration-agent
        fi
fi
# dh_installdeb will replace this with shell code automatically
# generated by other debhelper scripts.
exit 0
 |