drools-eclipse/org.guvnor.tools/src/org/guvnor/tools/utils/webdav/WebDavClient.java
public void deleteResource(String resource) throws Exception {
        IResponse response = null;
        try {
            ILocator locator = WebDAVFactory.locatorFactory.newLocator(resource);
            response = client.delete(locator, createContext());
            if (response.getStatusCode() != IResponse.SC_NO_CONTENT
               && response.getStatusCode() != IResponse.SC_OK) {
                throw new WebDavException(response);
            }
        } finally {
            if (response != null) {
                response.close();
            }
        }
    }
public void deleteResource(String resource) throws Exception {
        IResponse response = null;
        try {
            ILocator locator = WebDAVFactory.locatorFactory.newLocator(resource);
            response = client.delete(locator, createContext());
            if (response.getStatusCode() != IResponse.SC_NO_CONTENT
               && response.getStatusCode() != IResponse.SC_OK) {
                throw new WebDavException(response);
            }
        } finally {
            if (response != null) {
                response.close();
            }
        }
    }
public void deleteResource ( String resource ) throws Exception { IResponse response = null ; try { ILocator locator = WebDAVFactory . locatorFactory . newLocator ( resource ) ; response = client . delete ( locator , createContext ( ) ) ; if ( response . getStatusCode ( ) != IResponse . SC_NO_CONTENT && response . getStatusCode ( ) != IResponse . SC_OK ) { throw new WebDavException ( response ) ; } } finally { if ( response != null ) { response . close ( ) ; } } }
/*
(non-Javadoc)
@see org.guvnor.tools.utils.webdav.IWebDavClient#deleteResource(java.lang.String)
/ * ( non - Javadoc )