docs: public void actionDeleteResource() throws JspException {
  
          if ((getParamDialogmode() != null) && getParamDialogmode().startsWith(MODE_WIZARD)) {
              // only delete resource if dialog mode is a wizard mode
              try {
                  getCms().deleteResource(getParamResource(), CmsResource.DELETE_PRESERVE_SIBLINGS);
              } catch (Throwable e) {
                  // error deleting the resource, show error dialog
                  includeErrorpage(this, e);
              }
          }
      }