Browser-based JavaScript utility for bulk deleting Instagram comments from the comments activity page.
⚠️ Use at your own risk. Deletions are irreversible.
- Uses text-based selectors — resilient against Instagram DOM changes
- Supports English and Turkish UI locales (Select/Seç, Delete/Sil)
- Enables multi-select mode and deletes comments in safe batches
- Multiple fallback strategies for finding UI elements
- Automatically repeats until no comments remain
- Conservative defaults to reduce the risk of action limits
- Open Instagram in a desktop browser.
- Navigate to:
https://www.instagram.com/your_activity/interactions/comments - (Optional) Click Sort & filter to select a specific date range — only filtered comments will be deleted.
- Open the browser developer console:
- Mac:
Cmd + Option + I - Windows/Linux:
Ctrl + Shift + I
- Mac:
- Copy the script from
auto-delete-instagram-comments.jsand paste it into the console. - Press Enter.
💡 If pasting is blocked, type
allow pastingin the console and press Enter, then try again.
Edit these constants at the top of the script:
| Constant | Default | Description |
|---|---|---|
MAX |
10 |
Comments to delete per cycle |
CYCLE_DELAY |
20000 |
Delay between delete cycles (ms) |
SELECT_DELAY |
1200 |
Delay after clicking Select (ms) |
ICON_DELAY |
700 |
Delay between selecting comments (ms) |
DELETE_DELAY |
1500 |
Delay before confirming deletion (ms) |
To stop the script mid-run, execute in the console:
window.__STOP_IG_BULK_DELETE__ = true;- Finds the Select/Seç button by scanning all
<span>elements for matching text - Enters multi-selection mode
- Locates comment checkboxes using multiple selector strategies (
data-testid,role="checkbox", etc.) - Selects up to
MAXcomments per cycle - Clicks Delete/Sil and confirms in the modal dialog
- Repeats until no comments remain or the stop flag is set
- Instagram frequently changes its HTML structure. This script uses text-based and ARIA-based selectors instead of
data-bloks-nameattributes for better resilience. - Start with a low
MAXvalue (5–10) and increase gradually. - Keep the browser tab visible and focused while the script runs.
- This script is provided as-is. No guarantees are made regarding long-term compatibility.
Originally forked from iamceeso/instagram-bulk-comment-deleter.
