Grok Batch Deleter

Bulk delete files, share links, and deleted chats from Grok in safe batches. Auto-scrolls to load more, skips your exceptions (e.g., .pdf, "important"), and shows live progress. Fast, smart, and beautiful.

Tendrás que instalar una extensión para tu navegador como Tampermonkey, Greasemonkey o Violentmonkey si quieres utilizar este script.

You will need to install an extension such as Tampermonkey to install this script.

Necesitarás instalar una extensión como Tampermonkey o Violentmonkey para instalar este script.

Necesitarás instalar una extensión como Tampermonkey o Userscripts para instalar este script.

Necesitará instalar una extensión como Tampermonkey para instalar este script.

Necesitarás instalar una extensión para administrar scripts de usuario si quieres instalar este script.

(Ya tengo un administrador de scripts de usuario, déjame instalarlo)

Necesitará instalar una extensión como Stylus para instalar este estilo.

Necesitará instalar una extensión como Stylus para instalar este estilo.

Necesitará instalar una extensión como Stylus para instalar este estilo.

Necesitará instalar una extensión del gestor de estilos de usuario para instalar este estilo.

Necesitará instalar una extensión del gestor de estilos de usuario para instalar este estilo.

Necesitará instalar una extensión del gestor de estilos de usuario para instalar este estilo.

(Ya tengo un administrador de estilos de usuario, déjame instalarlo)

Autor
Vishwas R
Instalaciones diarias
1
Instalaciones totales
20
Calificaciones
0 0 0
Versión
1.0
Creado
05/11/2025
Actualizado
05/11/2025
Tamaño
21.9 KB
Licencia
MIT
Funciona en

Grok Batch Deleter

Bulk delete files, share links, and deleted chats from Grok in safe batches. Auto-scrolls to load more, skips your exceptions (e.g., .pdf, "important"), and shows live progress. Fast, smart, and beautiful.


Overview

Grok Batch Deleter is a Tampermonkey / Greasemonkey script that lets you bulk delete items across three Grok pages:

It features a beautiful UI, real-time progress, smart exceptions and low-memory processing — perfect for cleaning up hundreds or thousands of items without crashing your browser.


Key Features

Feature Description
Batch + Scroll Deletion Deletes all currently loaded items, automatically scrolls to load more, deletes them, and repeats until nothing is left.
Smart Exceptions Skip files by extension (e.g., .pdf, .md) or chats by keywords (e.g., important, work).
Page Auto-Detection Detects which page you're on and adjusts behavior automatically.
Real-Time Stats See deleted, skipped, and progress live.
Stop Anytime Click Stop to cancel instantly.
Safe & Efficient Processes in small batches — no full pre-load, no memory bloat.

How It Works (The Magic Behind Batch + Scroll)

"Delete → Scroll → Delete → Repeat"

Grok uses infinite scroll — only a few dozen items load at a time. Loading everything at once would crash your browser if you have 10,000+ files.

This script avoids that by:

  1. Step 1: Finds all currently visible items in the list.
  2. Step 2: For each:
    • Reads the title
    • Checks if it matches your skip list (e.g., .pdf or important)
    • If not skipped, hovers to reveal the Delete button → clicks → confirms
  3. Step 3: After deleting the batch, scrolls down to load the next set.
  4. Step 4: Waits for new items to appear.
  5. Step 5: Repeats from Step 1 until no new items load (3 failed scrolls = done).

Result: You can delete thousands of items in under 10 minutes, safely and smoothly.


Installation

  1. Install Tampermonkey (Chrome/Edge) or Greasemonkey (Firefox).
  2. - Open Tampermonkey → Create a new script
    • Paste the full script → Save

Usage

  1. Go to any of these pages:

  2. You’ll see a control panel at the top.

  3. Configure:

    • Target Page: Auto-selected, but you can change.
    • Skip Extensions / Keywords:
      • Files: pdf, jpg, md → keeps these files
      • Chats: important, draft → keeps chats with these words
  4. Click Start

  5. Watch it:

    • Delete current list
    • Scroll down
    • Load more
    • Delete again
    • Repeat until done
  6. Click Stop to cancel.


Example Use Cases

Page Skip Input Result
Files pdf, docx Deletes all except PDFs and Word docs
Share Links pdf Deletes all shared links except those with .pdf
Deleted Chats backup, important Permanently deletes all chats except those with "backup" or "important" in title

Technical Details

  • Selectors are based on Grok’s current DOM (as of Nov 2025).
  • Uses button[aria-label="Delete file"] and hover events to reveal hidden buttons.
  • Confirms deletion via global modal.
  • Works in left panel (#_r_2s_ .overflow-y-auto).
  • No external dependencies.

Safety & Privacy

  • Runs entirely in your browser
  • No data sent anywhere
  • Only interacts with your own Grok account
  • You control what gets deleted