Remove Public Folder with heading \ as name

A Public Folder was accedently created as \bad folder\name and now can't do anything with it.

Get-PublicFolder -GetChildren|?{$_.Name -Like '\*'}

PowerShell line above works to find it, but trying to delete with Remove-PublicFolder or rename with Set-PublicFolder to get rid of the bad folder result in error about incorrect format of PublicFolderIdParameter. I've tried to use Exchange Online tenant as OrganizationName without effect.
If trying to use Outlook as client to do anything with it gives the behavior as not being owner of folder (grayed out delete/rename option, missing tabs in properties).

Get-PublicFolder -GetChildren | Remove-PublicFolder
Get-PublicFolder -GetChildren|?{$ -like '\*'} | % {Set-PublicFolder $_.identity -Name 'crap'}

Cannot process argument transformation on parameter 'Identity'. Cannot convert value "?\bad folder\name" to type "Microsoft.Exchange.Configuration.Tasks.PublicFolderIdParameter". Error: "The value provided for parameter "?\bad folder\name" isn't in the correct format. The correct format is "<OrganizationName>\\<Fold
    + CategoryInfo          : InvalidData: (:) [Set-PublicFolder], ParameterBindin...mationException
    + FullyQualifiedErrorId : ParameterArgumentTransformationError,Set-PublicFolder
    + PSComputerName        :
LVL 31
Henrik JohanssonSystems engineerAsked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Simon Butler (Sembee)ConsultantCommented:
You will need to get Office365 support to remove the folder for you.

Henrik JohanssonSystems engineerAuthor Commented:
As suggested, I created a support ticket through the Office365 admin portal. When troubleshooting together with the support technician, I managed to get rid of the folder.

 In the Office365 portal, go to admin -> Exchange -> public folders.
 Clicking on the corrupt folder in the Office365 admin portal gave the same error message about Identity is incorrect as when using PowerShell. Trying to go up to parent folder by using up arrow button gave some other error message. After repeating the up arrow clicking a couple of times and confirming the error messages, I got back to root folder where the folder was marked.
 By using the recyclebin button to delete the marked folder, it was finally removed.

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
Henrik JohanssonSystems engineerAuthor Commented:
Problem solved when troubleshooting with Office 365 support.
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today

From novice to tech pro — start learning today.