WordPress Programmatically Logout

Programmatically logout of WordPress, destroy current session and clear auth cookie.
wp_destroy_current_session();
wp_clear_auth_cookie();
wp_set_current_user( 0 );