public void removeProperties(Collection propertyNames) throws DAVException {
        Assert.isNotNull(propertyNames);

        // Removing no properties is easy.
        if (propertyNames.isEmpty())
            return;

        // Add the names of the properties to remove to the request body.
        Document document = newDocument();
        PropertyUpdate propertyUpdate = PropertyUpdate.create(document);
        Prop prop = propertyUpdate.addRemove();
        Iterator namesItr = propertyNames.iterator();
        while (namesItr.hasNext())
            prop.addPropertyName((QualifiedName) namesItr.next());

        // Send the PROPPATCH request.
        IResponse response = null;
        try {
            response = davClient.proppatch(locator, newContext(), document);
            examineResponse(response);
            examineMultiStatusResponse(response);
        } catch (IOException e) {
            throw new SystemException(e);
        } finally {
            closeResponse(response);
        }
    }
public void removeProperties ( Collection propertyNames ) throws DAVException { Assert . isNotNull ( propertyNames ) ; if ( propertyNames . isEmpty ( ) ) return ; Document document = newDocument ( ) ; PropertyUpdate propertyUpdate = PropertyUpdate . create ( document ) ; Prop prop = propertyUpdate . addRemove ( ) ; Iterator namesItr = propertyNames . iterator ( ) ; while ( namesItr . hasNext ( ) ) prop . addPropertyName ( ( QualifiedName ) namesItr . next ( ) ) ; IResponse response = null ; try { response = davClient . proppatch ( locator , newContext ( ) , document ) ; examineResponse ( response ) ; examineMultiStatusResponse ( response ) ; } catch ( IOException e ) { throw new SystemException ( e ) ; } finally { closeResponse ( response ) ; } }
Remove the properties with the given names, from this resource.

@param propertyNames <code>Enumeration</code> over
<code>QualifiedNames</code>
@exception DAVException if there was a problem removing the
properties
@see IServer#proppatch(Locator, Context, Document)