[GH-ISSUE #1034] Bug: Unable to bulk delete links from the CLI #648

Closed
opened 2026-03-01 14:45:16 +03:00 by kerem · 2 comments
Owner

Originally created by @rickcecil on GitHub (Oct 1, 2022).
Original GitHub issue: https://github.com/ArchiveBox/ArchiveBox/issues/1034

Describe the bug

Unable to bulk delete links from the CLI using

archivebox remove --delete < links.txt

Steps to reproduce

Using the CLI, run this command:

archivebox remove --delete < links.txt

It reads the list of links, warns that these items will be de-listed and deleted and then issues the prompt:

Do you want to proceed with removing these links?
y/[n]: 

And rather than allowing me to select y or n, it drops back out to the cmd prompt.

Do you want to proceed with removing these links?
y/[n]: user@localhost:/path/to/archive$

Re-running the command indicates that these links have not been deleted.

I can delete individual links using

archivebox remove https://example.com

I do get prompted if I want to delete the links and I can select y.

ArchiveBox version

0.6.3
ArchiveBox v0.6.3 Cpython Linux Linux-5.15.0-48-generic-x86_64-with-glibc2.29 x86_64
DEBUG=False IN_DOCKER=False IS_TTY=True TZ=UTC FS_ATOMIC=True FS_REMOTE=False FS_PERMS=644 1000:1000 SEARCH_BACKEND=ripgrep

[i] Dependency versions:
 √  PYTHON_BINARY         v3.8.10         valid     /usr/bin/python3.8                                                          
 √  SQLITE_BINARY         v2.6.0          valid     /usr/lib/python3.8/sqlite3/dbapi2.py                                        
 √  DJANGO_BINARY         v3.1.14         valid     /home/user/.local/lib/python3.8/site-packages/django/__init__.py            
 √  ARCHIVEBOX_BINARY     v0.6.3          valid     /home/user/.local/bin/archivebox                                            

 √  CURL_BINARY           v7.68.0         valid     /usr/bin/curl                                                               
 -  WGET_BINARY           -               disabled  /usr/bin/wget                                                               
 √  NODE_BINARY           v17.6.0         valid     /home/user/.nvm/versions/node/v17.6.0/bin/node                              
 √  SINGLEFILE_BINARY     v1.0.16         valid     /home/user/apps/single-file-cli/single-file                                 
 -  READABILITY_BINARY    -               disabled  ./node_modules/.bin/readability-extractor                                   
 -  MERCURY_BINARY        -               disabled  ./node_modules/.bin/mercury-parser                                          
 -  GIT_BINARY            -               disabled  /usr/bin/git                                                                
 -  YOUTUBEDL_BINARY      -               disabled  /home/user/.local/bin/youtube-dl                                            
 √  CHROME_BINARY         v105.0.5195.125  valid     /usr/bin/chromium-browser                                                   
 √  RIPGREP_BINARY        v11.0.2         valid     /usr/bin/rg                                                                 

[i] Source-code locations:
 √  PACKAGE_DIR           23 files        valid     /home/user/.local/lib/python3.8/site-packages/archivebox                    
 √  TEMPLATES_DIR         3 files         valid     /home/user/.local/lib/python3.8/site-packages/archivebox/templates          
 -  CUSTOM_TEMPLATES_DIR  -               disabled                                                                              

[i] Secrets locations:
 √  CHROME_USER_DATA_DIR  48 files        valid     /home/user/snap/chromium/common/chromium                                    
 -  COOKIES_FILE          -               disabled                                                                              

[i] Data locations:
 √  OUTPUT_DIR            18 files        valid     /path/to/data                                     
 √  SOURCES_DIR           200 files       valid     ./sources                                                                   
 √  LOGS_DIR              1 files         valid     ./logs                                                                      
 √  ARCHIVE_DIR           30009 files     valid     ./archive                                                                   
 √  CONFIG_FILE           1.0 KB          valid     ./ArchiveBox.conf                                                           
 √  SQL_INDEX             161.4 MB        valid     ./index.sqlite3                                          


Originally created by @rickcecil on GitHub (Oct 1, 2022). Original GitHub issue: https://github.com/ArchiveBox/ArchiveBox/issues/1034 #### Describe the bug Unable to bulk delete links from the CLI using ```archivebox remove --delete < links.txt ``` #### Steps to reproduce Using the CLI, run this command: ```archivebox remove --delete < links.txt ``` It reads the list of links, warns that these items will be de-listed and deleted and then issues the prompt: ``` Do you want to proceed with removing these links? y/[n]: ``` And rather than allowing me to select y or n, it drops back out to the cmd prompt. ``` Do you want to proceed with removing these links? y/[n]: user@localhost:/path/to/archive$ ``` Re-running the command indicates that these links have not been deleted. I can delete individual links using ```archivebox remove https://example.com ``` I do get prompted if I want to delete the links and I can select y. #### ArchiveBox version ``` 0.6.3 ArchiveBox v0.6.3 Cpython Linux Linux-5.15.0-48-generic-x86_64-with-glibc2.29 x86_64 DEBUG=False IN_DOCKER=False IS_TTY=True TZ=UTC FS_ATOMIC=True FS_REMOTE=False FS_PERMS=644 1000:1000 SEARCH_BACKEND=ripgrep [i] Dependency versions: √ PYTHON_BINARY v3.8.10 valid /usr/bin/python3.8 √ SQLITE_BINARY v2.6.0 valid /usr/lib/python3.8/sqlite3/dbapi2.py √ DJANGO_BINARY v3.1.14 valid /home/user/.local/lib/python3.8/site-packages/django/__init__.py √ ARCHIVEBOX_BINARY v0.6.3 valid /home/user/.local/bin/archivebox √ CURL_BINARY v7.68.0 valid /usr/bin/curl - WGET_BINARY - disabled /usr/bin/wget √ NODE_BINARY v17.6.0 valid /home/user/.nvm/versions/node/v17.6.0/bin/node √ SINGLEFILE_BINARY v1.0.16 valid /home/user/apps/single-file-cli/single-file - READABILITY_BINARY - disabled ./node_modules/.bin/readability-extractor - MERCURY_BINARY - disabled ./node_modules/.bin/mercury-parser - GIT_BINARY - disabled /usr/bin/git - YOUTUBEDL_BINARY - disabled /home/user/.local/bin/youtube-dl √ CHROME_BINARY v105.0.5195.125 valid /usr/bin/chromium-browser √ RIPGREP_BINARY v11.0.2 valid /usr/bin/rg [i] Source-code locations: √ PACKAGE_DIR 23 files valid /home/user/.local/lib/python3.8/site-packages/archivebox √ TEMPLATES_DIR 3 files valid /home/user/.local/lib/python3.8/site-packages/archivebox/templates - CUSTOM_TEMPLATES_DIR - disabled [i] Secrets locations: √ CHROME_USER_DATA_DIR 48 files valid /home/user/snap/chromium/common/chromium - COOKIES_FILE - disabled [i] Data locations: √ OUTPUT_DIR 18 files valid /path/to/data √ SOURCES_DIR 200 files valid ./sources √ LOGS_DIR 1 files valid ./logs √ ARCHIVE_DIR 30009 files valid ./archive √ CONFIG_FILE 1.0 KB valid ./ArchiveBox.conf √ SQL_INDEX 161.4 MB valid ./index.sqlite3 ```
kerem 2026-03-01 14:45:16 +03:00
Author
Owner

@pirate commented on GitHub (Oct 27, 2022):

You can pass --yes to auto-confirm that prompt. Stdin [y] wont work if you're passing a file via < stdin.

<!-- gh-comment-id:1293537692 --> @pirate commented on GitHub (Oct 27, 2022): You can pass `--yes` to auto-confirm that prompt. Stdin `[y]` wont work if you're passing a file via `< stdin`.
Author
Owner

@pirate commented on GitHub (Jun 13, 2023):

closing for now, comment back here if you still need help

<!-- gh-comment-id:1589088755 --> @pirate commented on GitHub (Jun 13, 2023): closing for now, comment back here if you still need help
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/ArchiveBox#648
No description provided.