Keeping user deletion in sync with SSO

I am using Discourse as a members-only forum in conjunction with MemberPress plugin for WordPress.

The forum should be accessible to only those that are active members.

Is there a way to auto delete users (when deleted in WP) when they have no content at all in Discourse?