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
@zahedul
Copy link

zahedul commented Jul 16, 2024

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

@arturoodev
Copy link

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

IntelliJ IDEA 2024.1.4 (Ultimate Edition)
Built on June 20, 2024

Works for me. Thanks sir.

@lastbek
Copy link

lastbek commented Aug 5, 2024

2nd script works for me, thanks!

@cjunior-oliveira
Copy link

Actually reseting the Jetbrains Trial is much easier than that.

Doing that steps, all your configurations and plugins are removed. It's like if you have removed and installed it again. But there's a way to reset the trial that is much easier and it keeps all your configuration.

On Ubuntu go to ~./.java/.userPrefs, if you type ls there you'll notice a folder with some random characters. Delete this folder and the folder called jetprofiles. It`s done.

@cabinet-one
Copy link

cabinet-one commented Aug 19, 2024

On Ubuntu go to ~./.java/.userPrefs, if you type ls there you'll notice a folder with some random characters. Delete this folder and the folder called jetprofiles. It`s done.

that won't work on newer versions of jetbrains products, it still says your trial has ended, because it sends your UID to their servers to check if you already used the trial.
you have to change your user id to get it to work.
there is no need to delete any configs.
deleting the ~/.java/.userPrefs directory is not recommended, it might reset your licenses for other java apps if there are any.

  1. quit all jetbrains products
  2. open ~/.java/.userPrefs/jetbrains/prefs.xml
  3. find and edit the user_id_on_machine entry (e.g. i changed the last character and it worked)
  4. start an IDE and press the start trial button

you can also delete the ~/.java/.userPrefs/jetbrains folder and change JetBrains.UserIdOnMachine in ~/.java/.userPrefs/prefs.xml if the above method didn't work for you.

@NicolinoGamer
Copy link

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

@cjunior-oliveira
Copy link

On Ubuntu go to ~./.java/.userPrefs, if you type ls there you'll notice a folder with some random characters. Delete this folder and the folder called jetprofiles. It`s done.

that won't work on newer versions of jetbrains products, it still says your trial has ended, because it sends your UID to their servers to check if you already used the trial. you have to change your user id to get it to work. there is no need to delete any configs. deleting the ~/.java/.userPrefs directory is not recommended, it might reset your licenses for other java apps if there are any.

  1. quit all jetbrains products
  2. open ~/.java/.userPrefs/jetbrains/prefs.xml
  3. find and edit the user_id_on_machine entry (e.g. i changed the last character and it worked)
  4. start an IDE and press the start trial button

you can also delete the ~/.java/.userPrefs/jetbrains folder and change JetBrains.UserIdOnMachine in ~/.java/.userPrefs/prefs.xml if the above method didn't work for you.

I'm using the latest version and it works fine 🤔 Its says that your trial has end but if you press Start Trial again it will start.

@tebenkov2222
Copy link

How reset trial Rider 2024 on ubuntu?

@lamb0tiana
Copy link

Hi @mohamedmoussasoli ,

please try execute this code:

I did some changes

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

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

    rm -rf ~/Library/Application\ Support/JetBrains/$product*/eval

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

    sed -i '' '/evlsprt/d' ~/Library/Application\ Support/JetBrains/$product*/options/other.xml


    echo
done

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

Let me know if it works

worked for me, many thanks.

@medalinjim
Copy link

Second script work for me

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

@jclagoria
Copy link

Thx, the second script work for me!

Copy link

ghost commented Dec 12, 2024

@h3ssan its possible to remove Laravel Idea plugin trial

@slaenov
Copy link

slaenov commented Dec 19, 2024

@h3ssan, Grand tks for you. It works for goland 2024.3.1 you srcipt i mean, - JetBrains trial reset.md (second part of it). OS Ubuntu Ubuntu 22.04.5

@Muxammad1106
Copy link

I really need your help I don’t understand how to use mac m3 pro
do this it says that the trial trial has ended

@jibusayone
Copy link

On Ubuntu go to ~./.java/.userPrefs, if you type ls there you'll notice a folder with some random characters. Delete this folder and the folder called jetprofiles. It`s done.

that won't work on newer versions of jetbrains products, it still says your trial has ended, because it sends your UID to their servers to check if you already used the trial. you have to change your user id to get it to work. there is no need to delete any configs. deleting the ~/.java/.userPrefs directory is not recommended, it might reset your licenses for other java apps if there are any.

  1. quit all jetbrains products
  2. open ~/.java/.userPrefs/jetbrains/prefs.xml
  3. find and edit the user_id_on_machine entry (e.g. i changed the last character and it worked)
  4. start an IDE and press the start trial button

you can also delete the ~/.java/.userPrefs/jetbrains folder and change JetBrains.UserIdOnMachine in ~/.java/.userPrefs/prefs.xml if the above method didn't work for you.

Thank you! Changing the user_id_on_machine entry on ~/.java/.userPrefs/jetbrains/prefs.xml worked for me (PyCharm 2024.3).

@exploreTiny
Copy link

pycharm2024.3 on ubuntu20 work for me

@ericm48
Copy link

ericm48 commented Feb 14, 2025

For me the Ubuntu 22.04 scripts worked fine. Am curious, for those that did get it to reset, did you use the original email address or a different one? I used a new one.

@Fakhriddin3040
Copy link

rm -rf ~/Library/Preferences/com.apple.java.util.prefs.plist

Works on Mac M3 Pro on MacOS 15.4

Thank you a lot)

@paveL1boyko
Copy link

rm -rf ~/Library/Preferences/com.apple.java.util.prefs.plist

Works on Mac M1 Pro on MacOS 15.3

Thank you a lot)

@aghaazbutt
Copy link

On Ubuntu go to ~./.java/.userPrefs, if you type ls there you'll notice a folder with some random characters. Delete this folder and the folder called jetprofiles. It`s done.

that won't work on newer versions of jetbrains products, it still says your trial has ended, because it sends your UID to their servers to check if you already used the trial. you have to change your user id to get it to work. there is no need to delete any configs. deleting the ~/.java/.userPrefs directory is not recommended, it might reset your licenses for other java apps if there are any.

  1. quit all jetbrains products
  2. open ~/.java/.userPrefs/jetbrains/prefs.xml
  3. find and edit the user_id_on_machine entry (e.g. i changed the last character and it worked)
  4. start an IDE and press the start trial button

you can also delete the ~/.java/.userPrefs/jetbrains folder and change JetBrains.UserIdOnMachine in ~/.java/.userPrefs/prefs.xml if the above method didn't work for you.

Awesome Man!!

@rendon
Copy link

rendon commented Mar 26, 2025

Worked for me on Ubuntu (March 2025). Thanks for sharing!

@shahmal1yev
Copy link

It worked for PhpStorm 3.5 on Kali Linux, thank you so much (March 2025).

@SlavaPWNZ
Copy link

It worked for PhpStorm 2024.3.5
And without login, cool!

@NokkiPudge
Copy link

NokkiPudge commented Apr 2, 2025

On Ubuntu go to ~./.java/.userPrefs, if you type ls there you'll notice a folder with some random characters. Delete this folder and the folder called jetprofiles. It`s done.

that won't work on newer versions of jetbrains products, it still says your trial has ended, because it sends your UID to their servers to check if you already used the trial. you have to change your user id to get it to work. there is no need to delete any configs. deleting the ~/.java/.userPrefs directory is not recommended, it might reset your licenses for other java apps if there are any.

1. quit all jetbrains products

2. open `~/.java/.userPrefs/jetbrains/prefs.xml`

3. find and edit the `user_id_on_machine` entry (e.g. i changed the last character and it worked)

4. start an IDE and press the `start trial` button

you can also delete the ~/.java/.userPrefs/jetbrains folder and change JetBrains.UserIdOnMachine in ~/.java/.userPrefs/prefs.xml if the above method didn't work for you.

thanks man, its worked on a WebStorm 2024.2

@NoelJacob
Copy link

How do you reset plugin trials?

@aamaanaa
Copy link

worked. ty.

@jeffngugi
Copy link

How does this work?
Like steps on mac would be helpful

@aamaanaa
Copy link

aamaanaa commented Apr 28, 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)

@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