original_string: public static function removeAllUserSettingsForUser($userLogin)
      {
          if (empty($userLogin)) {
              throw new Exception('No userLogin specified. Cannot remove all settings for this user');
          }
  
          try {
              $table = Common::prefixTable('plugin_setting');
              Db::get()->query(sprintf('DELETE FROM %s WHERE user_login = ?', $table), array($userLogin));
          } catch (Exception $e) {
              if ($e->getCode() != 42) {
                  // ignore table not found error, which might occur when updating from an older version of Piwik
                  throw $e;
              }
          }
      }
code: public static function removeAllUserSettingsForUser($userLogin)
      {
          if (empty($userLogin)) {
              throw new Exception('No userLogin specified. Cannot remove all settings for this user');
          }
  
          try {
              $table = Common::prefixTable('plugin_setting');
              Db::get()->query(sprintf('DELETE FROM %s WHERE user_login = ?', $table), array($userLogin));
          } catch (Exception $e) {
              if ($e->getCode() != 42) {
                  // ignore table not found error, which might occur when updating from an older version of Piwik
                  throw $e;
              }
          }
      }
code_tokens: public static function removeAllUserSettingsForUser ( $ userLogin ) { if ( empty ( $ userLogin ) ) { throw new Exception ( 'No userLogin specified. Cannot remove all settings for this user' ) ; } try { $ table = Common :: prefixTable ( 'plugin_setting' ) ; Db :: get ( ) -> query ( sprintf ( 'DELETE FROM %s WHERE user_login = ?' , $ table ) , array ( $ userLogin ) ) ; } catch ( Exception $ e ) { if ( $ e -> getCode ( ) != 42 ) { // ignore table not found error, which might occur when updating from an older version of Piwik throw $ e ; } } }
docstring: Unsets all settings for a user. The settings will be removed from the database. Used when
  a user is deleted.
  
  @internal
  @param string $userLogin
  @throws \Exception If the `$userLogin` is empty. Otherwise we would delete most plugin settings
docstring_tokens: Unsets all settings for a user . The settings will be removed from the database . Used when a user is deleted .