original_string: public static function delete_plan($id) {
          $params = self::validate_parameters(self::delete_plan_parameters(), array(
              'id' => $id,
          ));
  
          $plan = api::read_plan($params['id']);
          self::validate_context($plan->get_context());
  
          return external_api::clean_returnvalue(self::delete_plan_returns(), api::delete_plan($params['id']));
      }
code: public static function delete_plan($id) {
          $params = self::validate_parameters(self::delete_plan_parameters(), array(
              'id' => $id,
          ));
  
          $plan = api::read_plan($params['id']);
          self::validate_context($plan->get_context());
  
          return external_api::clean_returnvalue(self::delete_plan_returns(), api::delete_plan($params['id']));
      }
code_tokens: public static function delete_plan ( $ id ) { $ params = self :: validate_parameters ( self :: delete_plan_parameters ( ) , array ( 'id' => $ id , ) ) ; $ plan = api :: read_plan ( $ params [ 'id' ] ) ; self :: validate_context ( $ plan -> get_context ( ) ) ; return external_api :: clean_returnvalue ( self :: delete_plan_returns ( ) , api :: delete_plan ( $ params [ 'id' ] ) ) ; }
docstring: Delete a plan.
  
  @param int $id The plan id
  @return boolean
docstring_tokens: Delete a plan .