When run, this script will delete all files inside of the LocalPlayerModerations folder. Currently, this folder stores your show / hide player actions; one file per account.
> [!tip]
> Resetting player show / hide actions every launch of the game is useful because it means that showing or hiding people at a club is temporary. Performers can be safely shown knowing that the number of visible players will not slowly grow over time.
## Script
Save this as `Clear VRChat LocalPlayerModerations.ps1` in any directory.
```powershell
$folderPath = "$env:USERPROFILE\AppData\LocalLow\VRChat\VRChat\LocalPlayerModerations"
# Check if the folder exists
if (Test-Path -Path $folderPath -PathType Container) {
# Get all files and folders within the specified directory
$items = Get-ChildItem -Path $folderPath -Force
# Loop through each item and delete them without outputting anything
foreach ($item in $items) {
$null = Remove-Item -Path $item.FullName -Force -Recurse -ErrorAction SilentlyContinue
}
}
```
*Written with ChatGPT*
## Shortcut
This shortcut will run the script if “*Start in*” is set to the directory the script is in.
```
C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe -command ".\'Clear VRChat LocalPlayerModerations.ps1'"
```
Once created, the shortcut can be added to VRCX’s Auto-Launch Folder.
> [!info]
> Open the Auto-Launch Folder from:
>
> VRCX Settings > Advanced > App Launcher > Auto-Launch Folder