original_string: public static function delete_endpoint($id) {
          require_capability('moodle/site:config', context_system::instance());
          $endpoint = new endpoint($id);
  
          // Will throw exceptions on validation failures.
          return $endpoint->delete();
      }
code: public static function delete_endpoint($id) {
          require_capability('moodle/site:config', context_system::instance());
          $endpoint = new endpoint($id);
  
          // Will throw exceptions on validation failures.
          return $endpoint->delete();
      }
code_tokens: public static function delete_endpoint ( $ id ) { require_capability ( 'moodle/site:config' , context_system :: instance ( ) ) ; $ endpoint = new endpoint ( $ id ) ; // Will throw exceptions on validation failures. return $ endpoint -> delete ( ) ; }
docstring: Delete an endpoint.
  
  Requires moodle/site:config capability at the system context.
  
  @param int $id The id of the endpoint to delete.
  @return boolean
docstring_tokens: Delete an endpoint .