intellij ultimate licence
#!/bin/bash
echo "removing evaluation key"
rm ~/.IntelliJIdea*/config/eval/*.key
echo "removing non evaluation key (e.g. expired keys)"
rm ~/.IntelliJIdea*/config/*.key
# for me it was not necessary
echo "resetting evalsprt in options.xml"
sed -i '/evlsprt/d' ~/.IntelliJIdea*/config/options/options.xml