code: private void checkBrokenLinks() {
  
          if (m_sitePath != null) {
              final String sitePath = m_sitePath;
  
              CmsRpcAction<CmsDeleteResourceBean> action = new CmsRpcAction<CmsDeleteResourceBean>() {
  
                  /**
                   * @see org.opencms.gwt.client.rpc.CmsRpcAction#execute()
                   */
                  @Override
                  public void execute() {
  
                      start(0, true);
  
                      CmsCoreProvider.getVfsService().getBrokenLinks(sitePath, this);
                  }
  
                  /**
                   * @see org.opencms.gwt.client.rpc.CmsRpcAction#onResponse(java.lang.Object)
                   */
                  @Override
                  protected void onResponse(CmsDeleteResourceBean result) {
  
                      stop(false);
                      displayBrokenLinks(result);
                  }
              };
  
              action.execute();
          } else if (m_structureId != null) {
              final CmsUUID structureId = m_structureId;
  
              CmsRpcAction<CmsDeleteResourceBean> action = new CmsRpcAction<CmsDeleteResourceBean>() {
  
                  /**
                   * @see org.opencms.gwt.client.rpc.CmsRpcAction#execute()
                   */
                  @Override
                  public void execute() {
  
                      start(0, true);
  
                      CmsCoreProvider.getVfsService().getBrokenLinks(structureId, this);
                  }
  
                  /**
                   * @see org.opencms.gwt.client.rpc.CmsRpcAction#onResponse(java.lang.Object)
                   */
                  @Override
                  protected void onResponse(CmsDeleteResourceBean result) {
  
                      stop(false);
                      displayBrokenLinks(result);
                  }
              };
  
              action.execute();
          }
      }
docs: Checks for broken links, ask for confirmation and finally deletes the given resource.<p>