original_string: public static function delete_competency($id) {
          $params = self::validate_parameters(self::delete_competency_parameters(), array(
              'id' => $id,
          ));
  
          $competency = api::read_competency($params['id']);
          $context = $competency->get_context();
          self::validate_context($context);
  
          return api::delete_competency($params['id']);
      }
code: public static function delete_competency($id) {
          $params = self::validate_parameters(self::delete_competency_parameters(), array(
              'id' => $id,
          ));
  
          $competency = api::read_competency($params['id']);
          $context = $competency->get_context();
          self::validate_context($context);
  
          return api::delete_competency($params['id']);
      }
code_tokens: public static function delete_competency ( $ id ) { $ params = self :: validate_parameters ( self :: delete_competency_parameters ( ) , array ( 'id' => $ id , ) ) ; $ competency = api :: read_competency ( $ params [ 'id' ] ) ; $ context = $ competency -> get_context ( ) ; self :: validate_context ( $ context ) ; return api :: delete_competency ( $ params [ 'id' ] ) ; }
docstring: Delete a competency
  
  @param int $id The competency id
  @return boolean
docstring_tokens: Delete a competency