No, cleaning the mailbox is exactly what is done by completing the actor. If you tried this without the semantics of completion, how would you be sure that you cleared everything? New messages may appear at any time.
So, to do this hard restart, you
- returns a
Stop directive from a supervisor strategy - then create a new child after receiving this
Terminated message.
source share