Skip to content

Instantly share code, notes, and snippets.

@h3ssan
Last active May 22, 2025 22:09
Show Gist options
  • Save h3ssan/9510fbb2291d41b090cf52adb2edd1c4 to your computer and use it in GitHub Desktop.
Save h3ssan/9510fbb2291d41b090cf52adb2edd1c4 to your computer and use it in GitHub Desktop.
Reset all JetBrains products trial in Linux

In some cases, only these lines will work

for product in IntelliJIdea WebStorm DataGrip PhpStorm CLion PyCharm GoLand RubyMine; do
    rm -rf ~/.config/$product*/eval 2> /dev/null
    rm -rf ~/.config/JetBrains/$product*/eval 2> /dev/null
done

But if not, try these

for product in IntelliJIdea WebStorm DataGrip PhpStorm CLion PyCharm GoLand RubyMine; do
    echo "[+] Resetting trial period for $product"

    echo "[+] Removing Evaluation Key..."
    rm -rf ~/.config/$product*/eval 2> /dev/null

    # Above path not working on latest version, Fixed below
    rm -rf ~/.config/JetBrains/$product*/eval 2> /dev/null

    echo "[+] Removing all evlsprt properties in options.xml..."
    sed -i 's/evlsprt//' ~/.config/$product*/options/other.xml 2> /dev/null

    # Above path not working on latest version, Fixed below
    sed -i 's/evlsprt//' ~/.config/JetBrains/$product*/options/other.xml 2> /dev/null

    echo
done

echo "Removing userPrefs files..."
rm -rf ~/.java/.userPrefs 2> /dev/null

If not works on Mac OS, then run the following code:

rm -rf ~/Library/Preferences/com.apple.java.util.prefs.plist
@daz9e
Copy link

daz9e commented May 12, 2025

HI! Can you create just an executable. It would also be nice if there was a graphical interface or a prompt where it tells you which software you want to do the trial reset

I have made a repo with a trial reset tool

i tested it on my own Goland and it worked. More testing is needed, as well as feedback of what features it should have. what i want to do:

* support for mac

* support for windows

* auto detect and close IDE

* possible other options like resetting settings

* possible to block tracking servers?

let me know if it worked for u (if not open a issue so i may fix it)

a binary without the source code that is being asked to run is, of course, perfectly safe

@arthur2050
Copy link

Doesn't work for me on Mac OS, unfortunately. Even your last suggestion, @h3ssan.
It finally worked after I:

  • Closed IntelliJ
  • Cleared browser cache
  • Restarted the Mac
  • Deleted the files again

In my case I believe these are the lines that mattered:

rm -rf ~/Library/Preferences/com.apple.java.util.prefs.plist
sed -i '' 's/evlsprt//' ~/Library/Application\ Support/JetBrains/IntelliJIdea2024.1/options/other.xml 2> /dev/null

worked

Thanks a lot, it works fine for me.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment