Skip to content

feat: Add bulk delete to the documents toolbar for deleting all docs in a collection VSCODE-748#1247

Draft
tculig wants to merge 6 commits intomongodb-js:mainfrom
tculig:VSCODE-748-add-bulk-delete
Draft

feat: Add bulk delete to the documents toolbar for deleting all docs in a collection VSCODE-748#1247
tculig wants to merge 6 commits intomongodb-js:mainfrom
tculig:VSCODE-748-add-bulk-delete

Conversation

@tculig
Copy link
Contributor

@tculig tculig commented Feb 13, 2026

Description

Ticket: https://jira.mongodb.org/browse/VSCODE-748
image

image image

Checklist

Motivation and Context

  • Bugfix
  • New feature
  • Dependency update
  • Misc

Open Questions

Dependents

Types of changes

  • Backport Needed
  • Patch (non-breaking change which fixes an issue)
  • Minor (non-breaking change which adds functionality)
  • Major (fix or feature that would cause existing functionality to change)

const estimatedCount = await dataService.estimatedCount(namespace);
if (estimatedCount > LARGE_COLLECTION_THRESHOLD) {
const methodChoice = await vscode.window.showInformationMessage(
'This collection has more than 1 million documents. Would you like to drop and recreate the collection for faster execution?',
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The text should probably use the LARGE_COLLECTION_THRESHOLD var.

{
modal: true,
detail:
'Dropping a collection will remove all indexes and validation rules.',
Copy link
Contributor

@lerouxb lerouxb Feb 13, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should we add this? I'm wondering how we'd even test it easily ;)

If the user's going to recreate all the indexes and validation rules I feel they probably really could just script this..

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants