Is your on-premises Exchange hybrid configured with O365?
Can messages sent to public folders in Exchange Online be delivered successfully?
The official document mentions that we can remove public folder mailboxes from Exchange on-premises environment. However, it doesn't mention that mail-enabled objects for public folder should be deleted as well. For your reference: Remove public folder mailboxes from your Exchange on-premises environment.
If the mail flow for public folders works well, we can keep those objects. It's not suggested to remove the mail-enabled public folder objects from AD directly for your hybrid environment.
If the response is helpful, please click "Accept Answer" and upvote it.
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.