code: public void deleteResource( final ITransaction transaction, final String path, final Hashtable<String, WebdavStatus> errorList,
                                  final WebdavRequest req, final WebdavResponse resp )
          throws IOException, WebdavException
      {
  
          resp.setStatus( WebdavStatus.SC_NO_CONTENT );
  
          if ( !_readOnly )
          {
  
              StoredObject so = _store.getStoredObject( transaction, path );
              if ( so != null )
              {
  
                  if ( so.isResource() )
                  {
                      _store.removeObject( transaction, path );
                  }
                  else
                  {
                      if ( so.isFolder() )
                      {
                          deleteFolder( transaction, path, errorList, req, resp );
                          _store.removeObject( transaction, path );
                      }
                      else
                      {
                          resp.sendError( WebdavStatus.SC_NOT_FOUND );
                      }
                  }
              }
              else
              {
                  resp.sendError( WebdavStatus.SC_NOT_FOUND );
              }
              so = null;
  
          }
          else
          {
              resp.sendError( WebdavStatus.SC_FORBIDDEN );
          }
      }
docs: deletes the recources at "path"
  
  @param transaction
  indicates that the method is within the scope of a WebDAV
  transaction
  @param path
  the folder to be deleted
  @param errorList
  all errors that ocurred
  @param req
  HttpServletRequest
  @param resp
  HttpServletResponse
  @throws WebdavException
  if an error in the underlying store occurs
  @throws IOException
  when an error occurs while sending the response