/** * Deletes the file associated with the given key from the BLOB cache and * BLOB server. * * @param key referring to the file to be deleted * @throws IOException * thrown if an I/O error occurs while transferring the request to * the BLOB server or if the BLOB server cannot delete the file */ public void deleteGlobal(BlobKey key) throws IOException { // delete locally delete(key); // then delete on the BLOB server // (don't use the distributed storage directly - this way the blob // server is aware of the delete operation, too) try (BlobClient bc = createClient()) { bc.delete(key); } }