CmdID / PowerShell / Cmdlets / Remove
Remove-PublicFolder
Use the Remove-PublicFolder cmdlet to remove an existing public folder. Exchange PowerShell reference
From the Exchange PowerShell reference 7 parameters Its page in the reference
Parameters
-IdentityThe Identity parameter specifies the name and path of the public folder you want to remove.-Confirm, -cfThe Confirm switch specifies whether to show or hide the confirmation prompt.-DomainControllerThe DomainController parameter specifies the domain controller that's used by this cmdlet to read data from or write data to Active Directory.-Mailbox-RecurseThe Recurse switch specifies whether all subfolders of the specified folder should also be removed.-ServerThe Server parameter specifies the Exchange server where you want to run this command.-WhatIf, -wiThe WhatIf switch shows what the command does without making any changes.