wp-cli

Super Commands

Delete all users

Delete all users but exclude one user, usually the super admin.

wp --allow-root user --network delete $(wp --allow-root --network user list --field=ID --exclude=1)