Fix incorrect INPUTS documentation for Clear-Variable#13057
Conversation
Fixes MicrosoftDocs#13056. Updated the INPUTS section for Clear-Variable to reflect that piping a PSVariable object is allowed, matching the documentation for Remove-Variable.
There was a problem hiding this comment.
Pull request overview
Note
Copilot was unable to run its full agentic suite in this review.
Updates the Clear-Variable cmdlet reference docs to reflect that pipeline input is supported (and documents the input type) across multiple PowerShell version reference sets.
Changes:
- Updated
## INPUTSsection from “None” toSystem.Management.Automation.PSVariable - Updated wording to indicate variables can be piped into
Clear-Variable - Applied the same documentation change across 5.1 and 7.4–7.7 reference trees
Reviewed changes
Copilot reviewed 5 out of 5 changed files in this pull request and generated 2 comments.
Show a summary per file
| File | Description |
|---|---|
| reference/7.7/Microsoft.PowerShell.Utility/Clear-Variable.md | Updates documented pipeline input type and narrative for Clear-Variable |
| reference/7.6/Microsoft.PowerShell.Utility/Clear-Variable.md | Same INPUTS section update for 7.6 docs |
| reference/7.5/Microsoft.PowerShell.Utility/Clear-Variable.md | Same INPUTS section update for 7.5 docs |
| reference/7.4/Microsoft.PowerShell.Utility/Clear-Variable.md | Same INPUTS section update for 7.4 docs |
| reference/5.1/Microsoft.PowerShell.Utility/Clear-Variable.md | Same INPUTS section update for Windows PowerShell 5.1 docs |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
PoliCheck Scan ReportThe following report lists PoliCheck issues in PR files. Before you merge the PR, you must fix all severity-1 and severity-2 issues. The AI Review Details column lists suggestions for either removing or replacing the terms. If you find a false positive result, mention it in a PR comment and include this text: #policheck-false-positive. This feedback helps reduce false positives in future scans. ✅ No issues foundMore information about PoliCheckInformation: PoliCheck | Severity Guidance | Term |
|
Learn Build status updates of commit a599957: ✅ Validation status: passed
For more details, please refer to the build report. |
|
@microsoft-github-policy-service agree |
|
@naffee Thanks for the PR. All the You can pass a |
PR Summary
This PR corrects a technical inaccuracy in the
Clear-Variabledocumentation. The## INPUTSsection previously stated that objects could not be piped to this cmdlet. It has been updated to reflect that piping aSystem.Management.Automation.PSVariableobject is supported, which matches the behavior documented inRemove-Variable.This fix was applied consistently across all supported version directories (5.1, 7.4, 7.5, 7.6, and 7.7) to ensure accuracy throughout the documentation.
PR Checklist