original_string: public function onDelete()
      {
          $this->validateRequestTheme();
  
          $type = Request::input('templateType');
  
          $this->loadTemplate($type, trim(Request::input('templatePath')))->delete();
  
          /*
           * Extensibility - documented above
           */
          $this->fireSystemEvent('cms.template.delete', [$type]);
      }
code: public function onDelete()
      {
          $this->validateRequestTheme();
  
          $type = Request::input('templateType');
  
          $this->loadTemplate($type, trim(Request::input('templatePath')))->delete();
  
          /*
           * Extensibility - documented above
           */
          $this->fireSystemEvent('cms.template.delete', [$type]);
      }
code_tokens: public function onDelete ( ) { $ this -> validateRequestTheme ( ) ; $ type = Request :: input ( 'templateType' ) ; $ this -> loadTemplate ( $ type , trim ( Request :: input ( 'templatePath' ) ) ) -> delete ( ) ; /*
           * Extensibility - documented above
           */ $ this -> fireSystemEvent ( 'cms.template.delete' , [ $ type ] ) ; }
docstring: Deletes a template
  @return void
docstring_tokens: Deletes a template