# PSN Friends Cleaner (PSN Purge Friends)

Thank you for downloading **PSN Friends Cleaner**!  

---

## ⚠️ IMPORTANT: PLEASE READ BEFORE USING!

- **WINDOWS DEFENDER / ANTIVIRUS**: Your antivirus software, especially Windows Defender, may flag this application as a potential threat (false positive). This can happen with tools that interact with online services or are not digitally signed by a large publisher. If you trust this application and have downloaded it from a reliable source, consider adding the application's folder (where PSN FRIENDS MANAGER.exe is located) to your Windows Defender (or other antivirus) exclusion list to prevent it from being blocked or removed.


- **IRREVERSIBLE ACTION**: Deleting friends is **PERMANENT**. Confirm carefully before proceeding.
- **USE AT YOUR OWN RISK**: The developer is not responsible for data loss or any consequences.
- **NPSSO TOKEN SECURITY**: Treat your NPSSO token as sensitive information (like a password). It is **NOT stored** after closing the app.
- **PSN API LIMITS**: Avoid exceeding approximately **300 API requests per 15 minutes** across all PSN activities to prevent temporary API blocks.

---

## ✨ MAIN FEATURES

• Modern, dark-themed user interface.
• Quick friend-profile loading.
• Adjustable number of friends to load (numeric input and slider).
• Bypass Mode (advanced users): removes the 100-friend/request loading limit (use with caution).
• Multiple operations: Select All, Deselect All, Delete Selected.
• PURGE ALL function for mass deletion (double confirmation required).
• Reload Data button to refresh friend/request counts without restarting.
• Integrated Friend-Request Manager: load incoming requests, Accept/Reject individually or in bulk, plus one-click Accept All / Reject All.
• Detailed deletion and request-processing logs for record-keeping.

---

## 🚀 QUICK START GUIDE

### Step 1: Obtain Your NPSSO Token

- Open your web browser and log in at: https://my.playstation.com
- In a new tab of the **same browser**, navigate to: 'https://ca.account.sony.com/api/v1/ssocookie'
- You will see a response like:
{"npsso":"YOUR_64_CHARACTER_CODE_HERE"}
- Carefully copy **only the 64-character NPSSO token**.

### Step 2: Use PSN Friends Cleaner

- Launch the application (`PSN Friends Cleaner.exe`).
- Paste your NPSSO token into the "Enter NPSSO…" field.
- Click **Confirm** to log in.

### Step 3: Load and Manage Friends

- Once logged in, your Online ID and friend count will appear.
- Specify how many friends you want to load (numeric input or slider).
- **Default Limit**: Up to 100 friends for safety.
- **Bypass Mode**: Toggle the "Bypass mode" to load more than 100 friends (be aware of risks).
- Click **Load** to fetch your friend list.
- Select friends to remove by checking the boxes beneath their avatars.
- Use **Select All** or **Deselect All** for convenience.
- Click **Delete Selected** to remove checked friends (requires confirmation).
- Click **PURGE ALL** (red button) to delete all loaded friends (**double confirmation required**).

---

## 📝 DELETION LOGS

After every deletion, the app creates a detailed log file containing:

- Online ID used.
- Friend count before deletion.
- Friends deleted.
- Friend count after deletion.

Logs are automatically saved in a folder named `log`, created in the same directory as `PSN Friends Cleaner.exe`.

**Log filename format**:  
[YourOnlineID]_[DDMMYY-HHMMSS].txt
(Example: `yamethxst_030625-171947.txt`)

---

## ⚠️ API USAGE & RESPONSIBLE BEHAVIOR

- Respect the PSN API limits (~300 requests per 15 minutes).
- Avoid repeated bulk operations or unnecessary large friend list loads.
- Use **Bypass Mode** sparingly to prevent:
  - API timeouts.
  - Slowdowns.
  - High memory usage.

---

## 🔒 DATA & PRIVACY

- Your NPSSO token is **never saved** or stored on your computer. You must enter it each time you run the application.
- The application does not store any personal information.
- At login, a simple, anonymous **ping request** is sent to the developer's website to count the number of active users. This is the **only external data sent** by the application and does not include your NPSSO, PSN ID, or any other personal data.
- Always obtain your NPSSO token directly from the official Sony URL:
  `https://ca.account.sony.com/api/v1/ssocookie`

---

**No formal support provided.**  
Use this application at your own risk. The author is not responsible for any actions taken or their consequences.