I'm working with an Exchange 2016 server (on-prem) and I'd like to run a PowerShell command to remove contacts from a user's mailbox, but only from the "Contacts" folder. If the user has any custom folders, I would not want to touch those.
search-mailbox -identity USERNAME -searchquery kind:contacts -deletecontent
This command works, but it deletes all contacts from all folders. Is there a way to restrict this command (or another like it) to only the default "Contacts" folder?