Skip to main content

Messenger.Cleanup() Method

Removes all references to the actions that belong to non-existing recipients.

Namespace: DevExpress.Mvvm

Assembly: DevExpress.Mvvm.v22.2.dll

NuGet Package: DevExpress.Mvvm


public void Cleanup()


The Cleanup method execution takes a while. So, to avoid a program freeze, we suggest that you use the Messenger.RequestCleanup method. It will invoke dead reference removal asynchronously when the current application is idle.

See Messenger to learn more.

See Also