So in the following example,
@startuml
A -> B : Hi B
B -> C : Hi C
create D
A -> D : Hi D
C -> D : Hi D
destroy D
B -> A : ok
B -> C : Hello
@enduml
Even after I destroy D, it still says in the diagram. Is there any feature for you to have D only till it is used and not always.
A, B and C should function normally
Only D needs to be based on the time its being referenced.