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]);
    }
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]);
    }
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 ] ) ; }
Deletes a template
@return void
Deletes a template