CmdID / PowerShell / Cmdlets / Remove
Remove-SmbShare
Deletes the specified SMB shares. Windows Server PowerShell reference
From the Windows Server PowerShell reference 11 parameters Its page in the reference
Parameters
-AsJobRuns the cmdlet as a background job.-CimSession, -SessionRuns the cmdlet in a remote session or on a remote computer.-ForceForces the command to run without asking for user confirmation.-InputObjectSpecifies the input object that's used in a pipeline command.-NameSpecifies an array of names of SMB shares.-PassThruReturns an object representing the item with which you're working.-ScopeNameSpecifies an array of the scopes of the SMB share to delete.-SmbInstanceSpecifies the input to this cmdlet.-ThrottleLimitSpecifies the maximum number of concurrent operations that can be established to run the cmdlet.-Confirm, -cfPrompts you for confirmation before running the cmdlet.-WhatIf, -wiShows what would happen if the cmdlet runs.