Called when a flow is stopped or deleted.

C# | Visual Basic | Visual C++ | F# |
public virtual void OnDelete()
Public Overridable Sub OnDelete
public: virtual void OnDelete()
abstract OnDelete : unit -> unit override OnDelete : unit -> unit

This method can optionally be overridden to provide place for clean-up to be performed.
If this method throws an exception it will be ignored.