Closed nwls-hermesj closed 4 years ago
Hey @nwls-hermesj - Thank you for submitting this! I should be able to review this shortly and I'll get this in with the next release. If there are any adjustments needed, I'll push them up to your source branch directly so they're rolled into this PR.
Getting caught up on backlog with PSGSuite now, thank you for your patience and again for your submission! 🙂
@nwls-hermesj - Made some adjustments to make better use of pipeline input, getting this merged!
This PR includes changes to the Remove-GSDriveFile cmdlet, moving invariants to the Begin clause and introducing parameter sets. The new InputObject parameter provides for deleting either a File[] or pipelined File objects (from Get-GSDriveFileList, for example). The FileId parameter is made optional to preclude prompting. FileId and InputObject are mutually exclusive, but leaving both unset is okay - nothing happens.