### Question:
MDWebMetadataWriter extends AbstractMetadataWriter { @Override public boolean deleteMetadata(final String identifier) throws MetadataIoException { LOGGER.log(logLevel, "metadata to delete:{0}", identifier); if (identifier == null) { return false; } try { final RecordInfo f = mdWriter.getRecordInfo(identifier); if (f != null) { mdWriter.deleteRecord(f); } else { LOGGER.log(logLevel, "The metadata is not registered, nothing to delete"); return false; } } catch (MD_IOException ex) { throw new MetadataIoException("The service has throw an MD_IOException while deleting the metadata: " + ex.getMessage()); } return true; } MDWebMetadataWriter(final Automatic configuration);  MDWebMetadataWriter(final Writer mdWriter, final String defaultrecordSet, final String userLogin);  MDWebMetadataWriter(final Writer mdWriter); protected  MDWebMetadataWriter(); RecordSet getRecordSet(final String defaultRecordSet); FullRecord getRecordFromObject(final Object object, final User user, final RecordSet recordSet, Profile profile, String title); String specialCorrectionName(final String attributeName, final Class objectClass); @Override boolean storeMetadata(final Node obj); boolean storeMetadata(final Node node, final String title); @Override void destroy(); @Override boolean deleteSupported(); @Override boolean updateSupported(); @Override boolean deleteMetadata(final String identifier); @Override boolean replaceMetadata(final String metadataID, final Node any); @Override boolean isAlreadyUsedIdentifier(final String metadataID); @Override boolean updateMetadata(final String metadataID, final Map<String, Object> properties); boolean isNoLink(); void setNoLink(final boolean noLink); RecordSet getMdRecordSet(); User getDefaultUser();  }### Answer:
@Test @Order(order=13) public void deleteMetadataTest() throws Exception { Node absResult = reader.getMetadata("mdweb_2_catalog_CSW Data Catalog_profile_inspire_core_service_4", MetadataType.ISO_19115); assertTrue(absResult != null); Node result = (Node) absResult; Node expResult = getNodeFromStream(Util.getResourceAsStream("org/constellation/xml/metadata/meta-19119.xml"), MetadataType.ISO_19115); compare(expResult, result); writer.deleteMetadata("mdweb_2_catalog_CSW Data Catalog_profile_inspire_core_service_4"); Node cacheResult = reader.getMetadata("mdweb_2_catalog_CSW Data Catalog_profile_inspire_core_service_4", MetadataType.ISO_19115); compare(result, cacheResult); reader.removeFromCache("mdweb_2_catalog_CSW Data Catalog_profile_inspire_core_service_4"); assertNull(reader.getMetadata("mdweb_2_catalog_CSW Data Catalog_profile_inspire_core_service_4", MetadataType.ISO_19115)); }