public function revoke() { // Set Gdrive client $gdrive = new ServMaskGdriveClient( get_option( 'ai1wmge_gdrive_token' ), get_option( 'ai1wmge_gdrive_ssl', true ) ); // Revoke token $gdrive->revoke(); // Remove token option delete_option( 'ai1wmge_gdrive_token' ); }