by kim | Apr 10, 2023 | WP CLI
To remove users with a specific role using WP-CLI, you can use the wp user delete command with the –role parameter. Here’s an example command to remove all users with the “contributor” role: wp user list –role=subscriber –field=ID...