aboutsummaryrefslogtreecommitdiff
path: root/reset-gpt
blob: 69131a75b002a3dbcdb10558109b119dde1d9c5b (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#!/bin/bash

# Close ChatGPT tabs only
pkill -f "firefox.*chatgpt.com" 2>/dev/null

PROFILE=$(ls -d ~/.mozilla/firefox/*.default*)

# Delete all ChatGPT site storage
rm -rf "$PROFILE/storage/default/https+++chatgpt.com"
rm -rf "$PROFILE/storage/default/https+++chat.openai.com"

# Clear Firefox HTTP cache
rm -rf "$PROFILE/cache2/*"

# Relaunch Firefox
nohup firefox-esr >/dev/null 2>&1 &