static CompletableFuture < Void > delete ( String segmentName , Storage storage , Duration timeout ) { TimeoutTimer timer = new TimeoutTimer ( timeout ) ; String attributeSegmentName = StreamSegmentNameUtils . getAttributeSegmentName ( segmentName ) ; return Futures . exceptionallyExpecting ( storage . openWrite ( attributeSegmentName ) . thenCompose ( handle -> storage . delete ( handle , timer . getRemaining ( ) ) ) , ex -> ex instanceof StreamSegmentNotExistsException , null ) ; }
Deletes all the Attribute data associated with the given Segment .