How to remove global emoticons in Hipchat Server
Platform notice: Server and Data Center only. This article only applies to Atlassian products on the Server and Data Center platforms.
Support for Server* products ended on February 15th 2024. If you are running a Server product, you can visit the Atlassian Server end of support announcement to review your migration options.
*Except Fisheye and Crucible
This is for an outdated version of Hipchat Server
This article applies to a version of Hipchat Server which will be deprecated soon. After that period the version will no longer be supported.
You should upgrade to a more recent version of Hipchat Server as soon as you can to take advantage of new features, and security and bug fixes.
Purpose
This article describes how to remove Hipchat Server's global emoticons — emoticons included with the application. Emoticons will continue to display and autocomplete in Hipchat desktop clients until they have been fully closed and reopened.
Solution
Download the Hipchat Server Support Toolkit into the /home/admin/ directory:
wget -N https://s3.amazonaws.com/hipchat-server-toolkit/hipchat-support.pyz -O /home/admin/hipchat-support.pyz
Run the
purge-emoticons
function with the proper arguments:If you wish to delete all default emoticons, use
--default
:sudo dont-blame-hipchat -c 'python /home/admin/hipchat-support.pyz purge-emoticons --default'
If you have a list of emoticons to delete, enter it as a comma-separated list.
Example - removing emoticons with shortcuts 'ninja' and 'noidea':sudo dont-blame-hipchat -c 'python /home/admin/hipchat-support.pyz purge-emoticons --emoticons ninja,noidea'
Persisting through upgrades
Upgrading Hipchat Server will restore default emoticons that have been removed. To prevent this:
- Log into the Hipchat Server terminal/command-line interface
- Create a file called
remove_emoticons
(do not add a file extension) in the/home/admin/startup_scripts
directory - Copy the command formed during step 2 of the Solution section above to remove emoticons
- Paste the command into the
remove_emoticons
file Make the file executable:
chmod +x /home/admin/startup_scripts/remove_emoticons