drools-eclipse/org.guvnor.eclipse.webdav/src/client/org/eclipse/webdav/client/AbstractResourceHandle.java
public void delete(boolean mustExist) throws DAVException {
        IResponse response = null;
        try {
            response = davClient.delete(locator, newContext());
            if (!mustExist && (response.getStatusCode() == IResponse.SC_NOT_FOUND))
                return;
            examineResponse(response);
            examineMultiStatusResponse(response);
        } catch (IOException exception) {
            throw new SystemException(exception);
        } finally {
            closeResponse(response);
        }
    }
public void delete(boolean mustExist) throws DAVException {
        IResponse response = null;
        try {
            response = davClient.delete(locator, newContext());
            if (!mustExist && (response.getStatusCode() == IResponse.SC_NOT_FOUND))
                return;
            examineResponse(response);
            examineMultiStatusResponse(response);
        } catch (IOException exception) {
            throw new SystemException(exception);
        } finally {
            closeResponse(response);
        }
    }
public void delete ( boolean mustExist ) throws DAVException { IResponse response = null ; try { response = davClient . delete ( locator , newContext ( ) ) ; if ( ! mustExist && ( response . getStatusCode ( ) == IResponse . SC_NOT_FOUND ) ) return ; examineResponse ( response ) ; examineMultiStatusResponse ( response ) ; } catch ( IOException exception ) { throw new SystemException ( exception ) ; } finally { closeResponse ( response ) ; } }
Delete this resource from the repository, optionally succeeding
in the delete if the resource was not found on the server.

@param mustExist if <code>true</code> then the delete will
fail if the resource was not on the server at the time of the
delete request.  If <code>false</code> the delete will succeed if
there was no such resource to delete.
@exception DAVException if there was a problem deleting
this resource.
@see IServer#delete(Locator, Context)
Delete this resource from the repository optionally succeeding in the delete if the resource was not found on the server .