public static function deactivate()
 {
     require_once BRIGHTCOVE_PATH . 'includes/class-bc-accounts.php';
     $bc_accounts = new BC_Accounts();
     $accounts = $bc_accounts->get_sanitized_all_accounts();
     foreach ($accounts as $account => $account_data) {
         $bc_accounts->set_current_account($account);
         $account_hash = $bc_accounts->get_account_hash();
         self::delete_cache_item('brightcove_oauth_access_token_' . $account_hash);
         $bc_accounts->restore_default_account();
     }
     self::delete_cache_item('brightcove_sync_playlists');
     self::delete_cache_item('brightcove_sync_videos');
     delete_option('_brightcove_plugin_activated');
 }