Unfortunately, confluence package does not provide uninstaller, so you need to erase all associated files and settings manually.
#!/bin/bash sudo service confluence stop sudo rm -rf /var/atlassian/application-data/confluence sudo rm -rf /opt/atlassian/confluence sudo rm -rf /etc/rc.d/init.d/confluence sudo userdel confluence sudo rm -rf /home/confluence