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']);
    }
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']);
    }
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' ] ) ; }
Delete a competency

@param int $id The competency id
@return boolean
Delete a competency