Skip to content

New command: spe container recyclebinitem remove. Closes #6734#7065

Merged
MartinM85 merged 2 commits intopnp:mainfrom
Saurabh7019:issue-6734
Jan 18, 2026
Merged

New command: spe container recyclebinitem remove. Closes #6734#7065
MartinM85 merged 2 commits intopnp:mainfrom
Saurabh7019:issue-6734

Conversation

@Saurabh7019
Copy link
Copy Markdown
Contributor

Closes #6734

@Saurabh7019 Saurabh7019 marked this pull request as ready for review December 12, 2025 18:54
Copilot AI review requested due to automatic review settings December 12, 2025 18:54
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR adds a new command spe container recyclebinitem remove that permanently removes a deleted container from the recycle bin. The implementation follows the established patterns from similar commands like container-recyclebinitem-restore and container-remove, providing consistent options for identifying containers by ID or name, with support for container type identification.

Key changes:

  • New command implementation with confirmation prompt and force flag support
  • Comprehensive test coverage with 259 lines of tests covering all scenarios
  • Documentation page with usage examples and permission details

Reviewed changes

Copilot reviewed 5 out of 5 changed files in this pull request and generated 3 comments.

Show a summary per file
File Description
src/m365/spe/commands/container/container-recyclebinitem-remove.ts New command implementation that permanently deletes containers from the recycle bin using DELETE request to the Graph API
src/m365/spe/commands/container/container-recyclebinitem-remove.spec.ts Comprehensive test suite covering validation, confirmation prompts, ID/name-based removal, error handling, and multiple result scenarios
src/m365/spe/commands.ts Command registration adding the new CONTAINER_RECYCLEBINITEM_REMOVE constant
docs/src/config/sidebars.ts Sidebar navigation update to include the new command documentation
docs/docs/cmd/spe/container/container-recyclebinitem-remove.mdx Reference documentation with options, permissions, examples, and usage instructions

Comment thread docs/docs/cmd/spe/container/container-recyclebinitem-remove.mdx
Comment thread docs/docs/cmd/spe/container/container-recyclebinitem-remove.mdx Outdated
Comment thread docs/docs/cmd/spe/container/container-recyclebinitem-remove.mdx Outdated
@milanholemans
Copy link
Copy Markdown
Contributor

Thanks, we'll try to review it soon!

@MartinM85
Copy link
Copy Markdown
Contributor

@Saurabh7019 Could you please rebase with main? We recently migrated Zod to v4, just to make sure everything will work.

@Saurabh7019 Saurabh7019 marked this pull request as draft January 9, 2026 09:25
@Saurabh7019 Saurabh7019 marked this pull request as ready for review January 9, 2026 10:37
@Saurabh7019
Copy link
Copy Markdown
Contributor Author

@Saurabh7019 Could you please rebase with main? We recently migrated Zod to v4, just to make sure everything will work.

Done!

@MartinM85 MartinM85 self-assigned this Jan 10, 2026
Copy link
Copy Markdown
Contributor

@MartinM85 MartinM85 left a comment

Choose a reason for hiding this comment

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

Great work @Saurabh7019 🚀

I have a couple of small comments, nothing major.

Comment thread docs/docs/cmd/spe/container/container-recyclebinitem-remove.mdx Outdated
Comment thread src/m365/spe/commands/container/container-recyclebinitem-remove.spec.ts Outdated
Comment thread src/m365/spe/commands/container/container-recyclebinitem-remove.spec.ts Outdated
Comment thread src/m365/spe/commands/container/container-recyclebinitem-remove.spec.ts Outdated
Comment thread src/m365/spe/commands/container/container-recyclebinitem-remove.spec.ts Outdated
@MartinM85 MartinM85 marked this pull request as draft January 10, 2026 16:10
@Saurabh7019 Saurabh7019 marked this pull request as ready for review January 12, 2026 19:05
Copy link
Copy Markdown
Contributor

@MartinM85 MartinM85 left a comment

Choose a reason for hiding this comment

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

Approved. I will merge it later.

Thank you for the contribution @Saurabh7019 🚀

@MartinM85 MartinM85 merged commit f39d1e4 into pnp:main Jan 18, 2026
10 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

New command: spe container recyclebinitem remove

4 participants