You can use this WordPress plugin to configure WordPress to purge users with one or more specified roles after a given timeframe. The goal of this plugin is to make it easy to meet the terms of the GPDR on your WordPress site.
This plugin is currently used on the Inesonic, LLC website <https://inesonic.com> to purge inactive accounts.
To use, copy this entire directory into your WordPress plugins directory and then activate the plugin from the WordPress admin panel.
Once activated, you can select the purge delay for "inactive" users as well as select which roles should be considered inactive by clicking on "Configure" on the Plugins page under the plugin.