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 .